/* Genel Stiller */
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #4cc9f0;
    --success: #4ade80;
    --warning: #b58b42;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --border: #496385;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, #6478ae 0%, #f8fafc 100%);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* Giriş Ekranı */
#loginScreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.logo h1 {
    font-size: 24px;
    color: var(--dark);
    font-weight: 600;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.login-info p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #64748b;
}

.login-info i {
    margin-right: 8px;
    color: var(--primary);
}

/* Butonlar */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a56d4 0%, #2d0a8c 100%);
}

.btn-secondary {
    background: #2c3137;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e48c0a 0%, #c06605 100%);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 4px 10px;  /* 8px 16px'den düşürüldü */
    font-size: 12px;
}

.badge {
    background: white;
    color: var(--success);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

/* Header */
header {
    background: white;
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.header-left .logo i {
    font-size: 28px;
    margin: 0;
}

.header-left .logo h1 {
    font-size: 20px;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Ana Konteyner */
.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
}


.sidebar-menu {
    margin-bottom: 30px;
}

.sidebar-menu .btn {
    margin-bottom: 10px;
}

.sidebar-divider {
    margin: 15px 0;
    border-top: 2px solid var(--border);
    opacity: 0.3;
    width: 100%;
}

.sidebar-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.stats-container h3 {
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-box {
    margin-bottom: 25px;
}

.stats-box h4 {
    color: #64748b;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Ana İçerik */
.main-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

/* İçerik Başlığı */
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;    /* 25px'den 15px'e */
    padding-bottom: 10px;    /* 20px'den 10px'e */
    border-bottom: 1px solid var(--border);  /* 2px'den 1px'e */
    flex-wrap: wrap;
    gap: 10px;              /* 15px'den 10px'e */
}

.content-header h2 {
    color: var(--dark);
    font-size: 20px;
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Arama */
.search-container {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--light);
}

/* Tablo */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.data-table th {
    color: white;
    font-weight: 600;
    font-size: 13px;  /* Biraz daha küçük font */
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}
.data-table tr {
    line-height: 1.2;  /* Varsayılan 1.6'dan daha düşük */
}

.data-table td {
    padding: 6px 12px;  /* Üst/alt 6px, sağ/sol 12px */
    border-bottom: 2px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background-color: #d0d2d5;
}

/* Durum Etiketleri */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-ready { background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%); color: white; }
.status-new { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; }
.status-pending { background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%); color: white; }
.status-arbitration { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; }
.status-enforcement { background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%); color: white; }
.status-closed { background: linear-gradient(135deg, #64748b 0%, #475569 100%); color: white; }

/* Dosya Türü Etiketleri */
.file-type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.file-type-tag {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* İstatistik Öğeleri */
.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #dee0e1;
    border-radius: var(--radius);
    margin-bottom: 8px;
    border-left: 4px solid var(--primary);
}

.stat-label {
    font-weight: 500;
    color: #475569;
}

.stat-count {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

/* Detay Konteyner */
.detail-container {
    background: white;
    padding: 15px;  /* 25px'den 15px'e düşürüldü */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.detail-container [style*="display: grid"] {
    gap: 10px !important;  /* 20px olan gap'i 10px'e düşür */
    margin-bottom: 10px !important;  /* 25px olan margin-bottom'u düşür */
}

/* Form Konteyner */
.form-container {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Form Stilleri */
.form-section {
    margin-bottom: 15px;  /* 30px'den 15px'e */
    padding: 12px;         /* 20px'den 12px'e */
    background: #e1e7ed;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);  /* 6px'den 4px'e */
    border-right: 4px solid var(--primary); /* 6px'den 4px'e */
}

.form-section h3 {
    color: var(--dark);
    margin-bottom: 10px;   /* 20px'den 10px'e */
    padding-bottom: 5px;    /* 10px'den 5px'e */
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;              /* 10px'den 8px'e */
    font-size: 16px;       /* Font boyutu küçültüldü */
}

.form-row {
    margin-bottom: 8px;  /* 15px'den 8px'e */
}

.form-row label {
    display: block;
    margin-bottom: 3px;    /* 6px'den 3px'e */
    font-weight: 600;
    color: #475569;
    font-size: 13px;       /* 14px'den 13px'e */
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: white;
}

.form-row textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Belgeler Grid */


.document-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.document-icon {
    font-size: 32px;
    color: var(--primary);
    text-align: center;
}

.document-info {
    text-align: center;
}

.document-name {
    font-weight: 600;
    margin-bottom: 8px;
    word-break: break-word;
}

.document-type {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.document-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Eksik Belgeler */
.missing-documents {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border-radius: var(--radius);
    border: 2px solid #fbbf24;
}

.missing-documents h4 {
    color: #d97706;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.missing-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #fde68a;
}

.missing-doc-item i {
    color: #f59e0b;
}



/* ==================== TÜM EKRANLAR İÇİN AÇILIR SIDEBAR ==================== */
/* ==================== HAMBURGER BUTONU ==================== */

/* Giriş ekranında hamburger butonunu gizle */
#loginScreen .menu-toggle {
    display: none !important;
}

/* Ana uygulama ekranında (appScreen) göster */
#appScreen .menu-toggle {
    display: flex !important;
}
/* TÜM EKRAN BOYUTLARINDA GÖRÜNSÜN */
.menu-toggle {
    display: flex !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
    z-index: 1001 !important;
    position: relative !important;
}

/* Hover efekti */
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
}

/* TÜM media query'leri geçersiz kılsın */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        display: flex !important;
    }
}
/* Sidebar - BAŞLANGIÇTA GİZLİ */
.sidebar {
    position: fixed;
    top: 70px;
    left: -280px;  /* Negatif değerle gizli */
    bottom: 0;
    width: 280px;
    background: white;
    padding: 25px;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    border-right: 1px solid var(--border);
}


/* Sidebar AÇIK */
.sidebar.active {
    left: 0;
}

/* Overlay (karanlık arka plan) */
.overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Ana içerik */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* Desktop'ta sidebar açıkken ana içerik kayar */
@media (min-width: 769px) {
    .sidebar.active ~ .main-content {
        margin-left: 280px;
    }
}

/* Header düzeni */
header {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

/* MOBİL */
@media (max-width: 768px) {
    .sidebar {
        width: 260px;
        left: -260px;
    }
    
    .sidebar.active ~ .main-content {
        margin-left: 0;
    }
}

/* BÜYÜK EKRANLAR */
@media (min-width: 1200px) {
    .sidebar {
        width: 300px;
        left: -300px;
    }
    
    .sidebar.active ~ .main-content {
        margin-left: 300px;
    }
}

/* Desktop'ta ana içerik kayması */
@media (min-width: 769px) {
    .main-content {
        transition: margin-left 0.3s ease;
    }
}

/* Sidebar gölgesi ve görünüm */
#sidebar {
    box-shadow: 2px 0 15px rgba(0,0,0,0.1) !important;
    border-right: 1px solid #496385 !important;
}

/* Ana içerik kayması için */
.main-content {
    transition: margin-left 0.3s ease !important;
}

/* Mobilde sidebar üstüne gelebilir, z-index ayarı */
@media (max-width: 768px) {
    
    #sidebar {
        z-index: 1000 !important;
    }
    
    .main-content {
        z-index: 1 !important;
        position: relative !important;
    }
}


/* Giriş ekranında hamburger butonunu KESİNLİKLE GİZLE */
#loginScreen .menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ana uygulama ekranında butonu GÖSTER */
#appScreen .menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Overlay'i de ekleyin (eğer yoksa) */
.overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Butonu daha belirgin yapalım */
.menu-toggle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.menu-toggle:hover {
    background: linear-gradient(135deg, #3a56d4 0%, #2d0a8c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}


/* Ana içeriğe tıklayınca sidebar kapanması için */
.main-content {
    transition: margin-left 0.3s ease !important;
    cursor: default;
}

/* Sidebar açıkken ana içeriğe overlay efekti */
.sidebar.active ~ .main-content::before {
    content: '';
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    pointer-events: all;
    display: none;
}

/* Mobilde overlay göster */
@media (max-width: 768px) {
    .sidebar.active ~ .main-content::before {
        display: block;
    }
}

/* Desktop'ta overlay (isteğe bağlı) */
@media (min-width: 769px) {
    .sidebar.active ~ .main-content::before {
        display: block;
    }
}

/* Overlay (sidebar açıkken arka plan karartması) */
.overlay {
    display: none;
    position: fixed;
    top: 70px; /* Header yüksekliği */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Desktop'ta overlay'i gizle (isteğe bağlı) */
@media (min-width: 769px) {
    .overlay {
        display: none !important;
    }
    
    .sidebar.active ~ .main-content {
        margin-left: 280px;
    }
    
    /* Desktop'ta ana içeriğe tıklayınca kapanmasın */
    .sidebar.active ~ .main-content::before {
        display: none !important;
    }
}

/* Mobilde overlay göster */
@media (max-width: 768px) {
    .overlay.active {
        display: block;
    }
    
    .sidebar.active ~ .main-content::before {
        display: block;
    }
}


/* ============ FOTOĞRAF ÖNİZLEME STİLLERİ ============ */
.document-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.document-preview-img[src=""], 
.document-preview-img:not([src]) {
    display: none;
}

.document-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary);
}

.document-preview-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}

.document-preview-placeholder span {
    font-size: 11px;
    font-weight: 600;
}

.document-preview-placeholder.pdf {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Resim önizleme için */
.document-card .document-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Resim yüklenemediğinde */
.document-card .document-icon img:error {
    display: none;
}

/* Document icon container */
.document-card .document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* ==================== BELGE GÖRÜNTÜLEME DÜZENİ - DOSYA TÜRÜ GÜZELLEŞTİRME ==================== */

/* Belgeler grid'i için güncellenmiş düzen */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));  /* 280px'den 250px'e */
    gap: 12px;           /* 20px'den 12px'e */
    margin-top: 10px;     /* 20px'den 10px'e */
}

/* Belge kartı için yeni düzen */
.document-card {
    background: white;
    border-radius: var(--radius);
    padding: 12px;        /* 20px'den 12px'e */
    border: 1px solid var(--border);  /* 2px'den 1px'e */
    display: flex;
    flex-direction: column;
    gap: 8px;             /* 15px'den 8px'e */
    transition: all 0.3s;
    min-height: 280px;    /* 320px'den 280px'e */
}

.document-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Belge başlık alanı - GÜZELLEŞTİRİLDİ (SEÇENEK 1: Minimal) */
.document-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.document-type {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
}

.document-type:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* Belge içeriği alanı */
.document-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Fotoğraf/ikon alanı - ORTALANMIŞ ve BÜYÜK */
.document-preview {
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    margin: 0 auto;
}

/* Fotoğraf görüntüsü - BÜYÜK ve ORTALI */
.document-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Belge bilgileri */
.document-info {
    text-align: center;
    width: 100%;
}

.document-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    word-break: break-word;
    padding: 0 10px;
    color: #334155;
}

/* TARİH ve BOYUT BİLGİSİ YAN YANA */
.document-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.document-date,
.document-size {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.document-date i,
.document-size i {
    font-size: 11px;
    color: var(--primary);
}

/* Butonlar alanı */
.document-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

/* PDF ikonu için özel stil */
.document-preview.pdf {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.document-preview.pdf i {
    color: #ef4444;
    font-size: 48px;
}

/* Dosya ikonu için */
.document-preview.file {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #ddd6fe;
}

.document-preview.file i {
    color: #8b5cf6;
    font-size: 48px;
}

/* ==================== OTOMATİK YÜKLEME ANİMASYONLARI ==================== */

@keyframes uploadPulse {
    0% { opacity: 0.9; box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.2); }
    50% { opacity: 1; box-shadow: 0 0 0 8px rgba(67, 97, 238, 0); }
    100% { opacity: 0.9; box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

/* Dönen ikon animasyonu */
.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Başarılı animasyon */
@keyframes successFlash {
    0% { background-color: rgba(74, 222, 128, 0.1); }
    50% { background-color: rgba(74, 222, 128, 0.3); }
    100% { background-color: rgba(74, 222, 128, 0.1); }
}

.file-item[data-file-info*='"status":"uploaded"'] {
    animation: successFlash 0.5s ease 2;
}


/* Tablo sütun genişlikleri */
.data-table th:nth-child(1) { min-width: 80px; }   /* ID */
.data-table th:nth-child(2) { min-width: 100px; }  /* Kayıt Tarihi */
.data-table th:nth-child(3) { min-width: 150px; }  /* Müvekkil */
.data-table th:nth-child(4) { min-width: 90px; }   /* Plaka */
.data-table th:nth-child(5) { min-width: 80px; }   /* Dosya No - YENİ */
.data-table th:nth-child(6) { min-width: 120px; }  /* Sigorta - YENİ */
.data-table th:nth-child(7) { min-width: 180px; }  /* Dosya Türü */
.data-table th:nth-child(8) { min-width: 120px; }  /* Durum */
.data-table th:nth-child(9) { min-width: 100px; }  /* İşlemler */

/* Tablo genişliği */
.data-table {
    min-width: 1200px; /* 7 sütun için 900px, 9 sütun için 1200px */
}

/* Dosya numarası vurgusu */
.data-table td:nth-child(5) {
    font-weight: 600;
}

/* Sigorta hücresi için stil */
.data-table td:nth-child(6) {
    color: #334155;
}

/* Header butonları için stil */
.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

#detailHeaderButtons {
    display: flex;
    gap: 10px;
    align-items: center;
}

#saveEditBtn {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

#saveEditBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

#cancelEditBtn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

#cancelEditBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

/* Yeni durum için renk */
.status-objection { 
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); 
    color: white; 
}

/* Hesap bölümü stilleri */
.account-section {
    margin-top: 25px;
    border-top: 3px solid #4361ee;
    padding-top: 20px;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.account-header h3 {
    color: #4361ee;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-card {
    background: white;
    border-radius: var(--radius);
    border: 2px solid #4361ee;
    margin-bottom: 20px;
    overflow: hidden;
}

.account-card-header {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-card-body {
    padding: 20px;
}

.account-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.account-row.total {
    font-weight: 700;
    font-size: 16px;
    border-bottom: 2px solid #4361ee;
    margin-top: 10px;
    padding-top: 10px;
}

.account-label {
    color: #475569;
}

.account-value {
    font-weight: 600;
    color: #1e293b;
}

.account-value.highlight {
    color: #4361ee;
    font-weight: 700;
}

.account-value.success {
    color: #16a34a;
    font-weight: 700;
}

.account-value.warning {
    color: #ea580c;
    font-weight: 700;
}

.account-share-row {
    background: #f8fafc;
    padding: 12px;
    border-radius: var(--radius);
    margin-top: 15px;
}

.share-person {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-weight: 600;
}

.share-person.alperen {
    color: #4361ee;
}

.share-person.ahmet {
    color: #16a34a;
}

.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

/* Hesap satırları */
.account-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.account-row.total {
    font-weight: 700;
    border-bottom: 2px solid #10b981;
    margin-top: 10px;
    padding-top: 10px;
}

.account-value {
    font-weight: 600;
}

.account-value.highlight {
    color: #4361ee;
    font-weight: 700;
}

.account-value.success {
    color: #10b981;
    font-weight: 700;
}

.account-value.warning {
    color: #ef4444;
    font-weight: 700;
}

/* ==================== DOSYA DETAY SAYFASI - KOMPAKT GÖRÜNÜM ==================== */

/* Dosya Bilgileri bölümündeki satırlar */
.detail-container .form-section .form-row {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 6px !important;
}

/* Etiketler */
.detail-container .form-section .form-row label {
    width: 100px !important;  /* 120px'den 100px'e düşür */
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}

/* Değer kutuları */
.detail-container .form-section .form-row div {
    flex: 1 !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    background: white !important;
    border-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Dosya türü etiketleri */
.file-type-tag {
    padding: 3px 6px !important;
    font-size: 11px !important;
}

/* Durum badge'i */
.status-badge {
    padding: 3px 8px !important;
    font-size: 11px !important;
}

/* GELEN ÖDEME, MÜVEKKİL, AVUKAT HESABI kutuları */
[style*="background: #f0f9ff"],
[style*="background: #dcfce7"],
[style*="background: #e6f0ff"],
[style*="background: #f0fdf4"] {
    padding: 8px !important;
    margin-bottom: 8px !important;
}

/* Kutu içindeki yazılar */
[style*="background: #f0f9ff"] div,
[style*="background: #dcfce7"] div,
[style*="background: #e6f0ff"] div,
[style*="background: #f0fdf4"] div {
    font-size: 12px !important;
    padding: 2px 0 !important;
}

/* Kutu başlıkları */
[style*="background: #f0f9ff"] div[style*="font-weight: 600"],
[style*="background: #dcfce7"] div[style*="font-weight: 600"],
[style*="background: #e6f0ff"] div[style*="font-weight: 600"],
[style*="background: #f0fdf4"] div[style*="font-weight: 600"] {
    font-size: 13px !important;
    margin-bottom: 3px !important;
}

/* PAY DAĞILIMI kutuları */
[style*="background: #f0fdf4"] [style*="background: #f0fdf4"],
[style*="background: #f0fdf4"] [style*="background: #e6f0ff"] {
    padding: 6px !important;
}

[style*="background: #f0fdf4"] [style*="font-size: 14px"] {
    font-size: 13px !important;
}

[style*="background: #f0fdf4"] [style*="font-size: 11px"] {
    font-size: 10px !important;
}

/* Alt detay satırları */
[style*="border-top: 1px dashed #bae6fd"] {
    font-size: 10px !important;
    padding-top: 3px !important;
    margin-top: 3px !important;
}

/* Avukat Net Kalan vurgusu */
[style*="color: #4361ee; font-weight: 600"] {
    font-size: 14px !important;
}

/* Müvekkile Ödenecek vurgusu */
[style*="color: #166534; font-weight: 600"] {
    font-size: 14px !important;
}

/* Ödeme sekmeleri */
[style*="display: flex; gap: 5px; margin-bottom: 15px"] .btn-sm {
    padding: 3px 8px !important;
    font-size: 11px !important;
}

/* Üç sütunlu yapı */
[style*="grid-template-columns: 1fr 1fr 1fr"] {
    gap: 6px !important;
    margin-bottom: 8px !important;
}

/* Form section'lar */
.detail-container .form-section:not(:has(.account-section)) {
    padding: 6px !important;
    margin-bottom: 6px !important;
}

/* Başlıklar */
.detail-container .form-section:not(:has(.account-section)) h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    padding-bottom: 2px !important;
}

.detail-container .form-section:not(:has(.account-section)) h4 {
    font-size: 12px !important;
    margin: 4px 0 2px 0 !important;
}

/* TOPLAM ÖDEMELER kartı (dokunma) */
[style*="background: linear-gradient(135deg, #4361ee"] {
    /* Aynen kalsın */
}

/* ==================== DOSYA HESABI BÖLÜMÜ - BOŞLUKLARI AZALT ==================== */

/* Dosya hesabı bölümündeki tüm kutuların iç boşluklarını azalt */
.detail-container [style*="background: #f0f9ff"],
.detail-container [style*="background: #dcfce7"],
.detail-container [style*="background: #e6f0ff"],
.detail-container [style*="background: #f0fdf4"] {
    padding: 6px !important;  /* 8px'den 6px'e düşür */
    margin-bottom: 5px !important;  /* 8px'den 5px'e düşür */
}

/* Kutu içindeki satırların boşluklarını azalt */
.detail-container [style*="background: #f0f9ff"] div,
.detail-container [style*="background: #dcfce7"] div,
.detail-container [style*="background: #e6f0ff"] div,
.detail-container [style*="background: #f0fdf4"] div {
    padding: 1px 0 !important;  /* 2px'den 1px'e düşür */
    font-size: 12px !important;
}

/* Kutu başlıklarının alt boşluğunu azalt */
.detail-container [style*="background: #f0f9ff"] div[style*="font-weight: 600"],
.detail-container [style*="background: #dcfce7"] div[style*="font-weight: 600"],
.detail-container [style*="background: #e6f0ff"] div[style*="font-weight: 600"],
.detail-container [style*="background: #f0fdf4"] div[style*="font-weight: 600"] {
    margin-bottom: 2px !important;  /* 3px'den 2px'e düşür */
}

/* PAY DAĞILIMI kutularını sıkıştır */
.detail-container [style*="background: #f0fdf4"] [style*="background: #f0fdf4"],
.detail-container [style*="background: #f0fdf4"] [style*="background: #e6f0ff"] {
    padding: 5px !important;  /* 6px'den 5px'e düşür */
}

/* Alt detay satırlarını sıkıştır */
.detail-container [style*="border-top: 1px dashed #bae6fd"] {
    padding-top: 2px !important;  /* 3px'den 2px'e düşür */
    margin-top: 2px !important;  /* 3px'den 2px'e düşür */
    font-size: 10px !important;
}

/* Ödeme sekmelerini sıkıştır */
.detail-container [style*="display: flex; gap: 5px; margin-bottom: 15px"] {
    margin-bottom: 8px !important;  /* 15px'den 8px'e düşür */
}

.detail-container [style*="display: flex; gap: 5px; margin-bottom: 15px"] .btn-sm {
    padding: 3px 6px !important;  /* 4px 8px'den 3px 6px'e düşür */
    font-size: 10px !important;
}

/* TOPLAM ÖDEMELER kartını biraz sıkıştır (isteğe bağlı) */
.detail-container [style*="background: linear-gradient(135deg, #4361ee"] {
    padding: 10px !important;  /* 12px'den 10px'e düşür */
    margin-bottom: 10px !important;  /* 15px'den 10px'e düşür */
}

.detail-container [style*="background: linear-gradient(135deg, #4361ee"] div[style*="font-size: 16px"] {
    font-size: 15px !important;  /* 16px'den 15px'e düşür */
}

.detail-container [style*="background: linear-gradient(135deg, #4361ee"] div[style*="font-size: 14px"] {
    font-size: 13px !important;  /* 14px'den 13px'e düşür */
}