/* =========================== */
/* SÖZLEŞMELER SAYFA STİLLERİ */
/* =========================== */
.sozlesme-page-wrapper {
    margin-top: 30px;
}

.sozlesme-container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
.sozlesme-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .sozlesme-header h2 {
        color: #2d3748;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

        .sozlesme-header h2 i {
            color: #667eea;
            font-size: 2rem;
        }

.sozlesme-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.sozlesme-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

    .sozlesme-stat-item i {
        color: #667eea;
    }

.sozlesme-stat-tutar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

    .sozlesme-stat-tutar i {
        color: white;
    }

/* Proje Seçim Kartı */
.proje-secim-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .proje-secim-card h5 {
        color: #2d3748;
        font-weight: 600;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .proje-secim-card h5 i {
            color: #667eea;
        }

.proje-select-wrapper {
    position: relative;
}

    .proje-select-wrapper select,
    .proje-secim-card select {
        width: 100%;
        padding: 1rem 3rem 1rem 1.5rem;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 1rem;
        color: #2d3748;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease;
        appearance: none;
    }

        .proje-select-wrapper select:focus,
        .proje-secim-card select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            outline: none;
        }

    .proje-select-wrapper::after {
        content: '\F282';
        font-family: 'bootstrap-icons';
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: #667eea;
        pointer-events: none;
        font-size: 1.2rem;
    }

/* Taşeron Multi-Select */
.taseron-multiselect {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem;
    background: white;
}

    .taseron-multiselect option {
        padding: 0.75rem;
        border-radius: 8px;
        margin: 0.25rem 0;
        cursor: pointer;
    }

        .taseron-multiselect option:checked {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .taseron-multiselect option:hover {
            background: rgba(102, 126, 234, 0.1);
        }

/* Filtrele Butonu */
.btn-sozlesme-filtrele {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

    .btn-sozlesme-filtrele:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
        color: white;
    }

/* Seçili Taşeronlar Badge */
.secili-taseronlar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px dashed rgba(102, 126, 234, 0.3);
}

.badge-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 0.25rem;
}

.secili-taseron-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.badge-remove {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-left: 0.25rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer;
}

    .badge-remove:hover {
        opacity: 1;
    }

/* Taşeron İstatistik Kartı */
.taseron-istatistik-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .taseron-istatistik-card h6 {
        color: #2d3748;
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .taseron-istatistik-card h6 i {
            color: #667eea;
        }

.taseron-istatistik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.taseron-istatistik-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.taseron-istatistik-baslik {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

    .taseron-istatistik-baslik i {
        color: #667eea;
    }

.taseron-istatistik-detay {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #4a5568;
}

    .taseron-istatistik-detay i {
        color: #667eea;
        margin-right: 0.25rem;
    }

/* Tablo Kartı */
.sozlesme-table-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .sozlesme-table-card h4 {
        color: #2d3748;
        font-weight: 600;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .sozlesme-table-card h4 i {
            color: #667eea;
        }

/* Tablo Stilleri */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sozlesme-table {
    margin: 0;
    background: white;
}

    .sozlesme-table thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

        .sozlesme-table thead th {
            color: white;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.5px;
            padding: 1rem;
            border: none;
            white-space: nowrap;
        }

    .sozlesme-table tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #e2e8f0;
    }

        .sozlesme-table tbody tr:hover {
            background: #f7fafc;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

    .sozlesme-table tbody td {
        padding: 1rem;
        vertical-align: middle;
        color: #4a5568;
    }

    .sozlesme-table tbody tr:last-child {
        border-bottom: none;
    }

/* Taşeron Badge */
.taseron-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Bedel Text */
.bedel-text {
    font-weight: 700;
    color: #2d3748;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

/* Dosya Link */
.dosya-link {
    color: #3b82f6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .dosya-link:hover {
        color: #2563eb;
        transform: translateX(2px);
    }

    .dosya-link i {
        font-size: 1.2rem;
    }

.dosya-yok-badge {
    color: #9ca3af;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Onay Badge'leri */
.badge-onayli {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-onaysiz {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Buton Stilleri */
.btn-sozlesme-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

    .btn-sozlesme-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        color: white;
    }

.btn-sozlesme-view {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

    .btn-sozlesme-view:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        color: white;
    }

.btn-sozlesme-onayla {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

    .btn-sozlesme-onayla:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
        color: white;
    }

.btn-sozlesme-onay-kaldir {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

    .btn-sozlesme-onay-kaldir:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
        color: white;
    }

.btn-sozlesme-edit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

    .btn-sozlesme-edit:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        color: white;
    }

.btn-sozlesme-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

    .btn-sozlesme-delete:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        color: white;
    }

/* Modal Stilleri */
.sozlesme-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sozlesme-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    border: none;
}

    .sozlesme-modal .modal-header h5 {
        font-weight: 600;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sozlesme-modal .modal-header .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

.sozlesme-modal .modal-body {
    padding: 2rem;
}

.sozlesme-modal .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.sozlesme-modal .form-control,
.sozlesme-modal .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

    .sozlesme-modal .form-control:focus,
    .sozlesme-modal .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Dosya Önizleme */
.dosya-onizleme,
.mevcut-dosya {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    color: #667eea;
    font-weight: 600;
}

    .dosya-onizleme i,
    .mevcut-dosya i {
        font-size: 1.2rem;
    }

/* Bedel Önizleme */
.bedel-onizleme {
    display: block;
    margin-top: 0.5rem;
    color: #667eea;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.btn-dosya-kaldir {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

    .btn-dosya-kaldir:hover {
        background: #ef4444;
        color: white;
    }

/* Boş Durum */
.sozlesme-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

    .sozlesme-empty-state i {
        font-size: 4rem;
        color: #cbd5e0;
        margin-bottom: 1rem;
    }

    .sozlesme-empty-state h5 {
        color: #4a5568;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

.proje-sec-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

    .proje-sec-state i {
        font-size: 5rem;
        color: #cbd5e0;
        margin-bottom: 1.5rem;
    }

    .proje-sec-state h4 {
        color: #4a5568;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

/* Loading Efekti */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

    .btn-loading::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spinner 0.6s linear infinite;
    }

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sozlesme-header,
.proje-secim-card,
.taseron-istatistik-card,
.sozlesme-table-card {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .sozlesme-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .sozlesme-stat-tutar {
        width: 100%;
    }

    .taseron-istatistik-grid {
        grid-template-columns: 1fr;
    }

    .sozlesme-table thead {
        display: none;
    }

    .sozlesme-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1rem;
    }

    .sozlesme-table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border: none;
    }

        .sozlesme-table tbody td::before {
            content: attr(data-label);
            float: left;
            font-weight: 600;
            color: #2d3748;
        }

    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .secili-taseronlar-badges {
        flex-direction: column;
        align-items: flex-start;
    }
}
