/* İmar Planı İlanları Özel Stilleri - Modern Tasarım */
.imar-header-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.imar-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(25deg);
}

.imar-header-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.imar-header-section h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.imar-header-section p {
    opacity: 0.95;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

/* Gelişmiş Filtreleme Kartı - Modern Tasarım */
.filter-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    border-radius: 3px 0 0 3px;
}

.filter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eef2f6;
    display: flex;
    align-items: center;
}

.filter-title i {
    margin-right: 12px;
    font-size: 1.3rem;
    color: #2a5298;
    background: #eef2f6;
    padding: 8px;
    border-radius: 10px;
}

.filter-group {
    margin-bottom: 1.2rem;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.filter-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 0.95rem;
    background: #f8fafc;
}

.filter-input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.15);
    outline: none;
    background: white;
}

/* Select2 özelleştirme */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.4rem !important;
    min-height: 45px !important;
    background: #f8fafc !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #2a5298 !important;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.15) !important;
}

.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eef2f6;
}

.filter-actions .btn {
    flex: 1;
    padding: 0.8rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-size: 1rem;
}

.filter-actions .btn-primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: none;
    box-shadow: 0 4px 10px rgba(42, 82, 152, 0.3);
}

.filter-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.4);
}

.filter-actions .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.filter-actions .btn-outline-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
    transform: translateY(-2px);
}

/* Tablo Konteynırı - Modern Tasarım */
.imar-table-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

.imar-table-container:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.imar-table-container .dataTables_wrapper {
    padding: 1.5rem;
}

/* Tablo Stilleri - Modern ve Şık */
#imarTable {
    width: 100% !important;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
}

#imarTable thead {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    position: sticky;
    top: 0;
    z-index: 10;
}

#imarTable thead th {
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.2rem 0.8rem;
    white-space: nowrap;
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

#imarTable thead th:last-child {
    border-right: none;
}

#imarTable tbody td {
    padding: 1.2rem 0.8rem;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f6;
    font-size: 0.95rem;
    text-align: center;
    background: white;
    transition: all 0.2s ease;
}

#imarTable tbody tr:hover td {
    background: #f8fafc;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#imarTable tbody tr:last-child td {
    border-bottom: none;
}

/* SÜTUN GENİŞLİKLERİ */
.aski-durumu-header { width: 15% !important; }
.belgeler-header { width: 22% !important; }
.aski-tarih-header { width: 20% !important; }
.meclis-header { width: 20% !important; }
.durum-header { width: 25% !important; }

/* Responsive Tablo Düzenlemeleri - BAŞLIKLAR DA KAYIYOR */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Tablo başlıklarının da içerikle kaymasını sağla */
.table-responsive thead {
    position: relative;
    top: 0;
    z-index: 1;
}

/* DataTables wrapper içinde responsive düzeltme */
.dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dataTables_scroll {
    overflow: visible !important;
}

/* Askı Durumu Badge - Modern Tasarım */
.askida-badge {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.askida-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.askida-planned {
    background: linear-gradient(135deg, #fff3cd, #ffecb5);
    color: #856404;
    border: 1px solid #ffe69c;
}

.askida-active {
    background: linear-gradient(135deg, #d1f7e5, #a8e6cf);
    color: #0f5132;
    border: 1px solid #badbcc;
}

.askida-expired {
    background: linear-gradient(135deg, #f8d7da, #f5c2c7);
    color: #842029;
    border: 1px solid #f1aeb5;
}

.askida-unknown {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    color: #4a5568;
    border: 1px solid #b0c4de;
}

/* Belgeler Butonları - Modern Tasarım */
.documents-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.document-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: 85px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.document-link i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
    color: #2a5298;
}

.document-link:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(42, 82, 152, 0.3);
    border-color: transparent;
}

.document-link:hover i {
    color: white;
}

/* Birleştirilmiş Tarih Hücresi - Modern Tasarım */
.birlestirilmis-tarih {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.tarih-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.tarih-item i {
    color: #2a5298;
    font-size: 0.9rem;
    background: white;
    padding: 4px;
    border-radius: 6px;
}

.tarih-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.8rem;
}

.tarih-value {
    color: #1e293b;
    font-weight: 600;
}

/* Birleştirilmiş Meclis Hücresi - Modern Tasarım */
.birlestirilmis-meclis {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.meclis-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.meclis-item i {
    color: #2a5298;
    font-size: 0.9rem;
    background: white;
    padding: 4px;
    border-radius: 6px;
}

.karar-no-badge {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e3c72;
    border: 1px solid #b0c4de;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* DURUM BUTONU - Çok Şık ve Modern Tasarım */
.durum-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.durum-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.durum-btn:hover::before {
    left: 100%;
}

.durum-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.6);
}

.durum-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.durum-btn:hover i {
    transform: rotate(360deg);
}

.durum-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

/* DataTable Kontrolleri - Modern Tasarım */
.dataTables_wrapper .dataTables_info {
    padding: 1.2rem 0 0.8rem 0;
    color: #475569;
    font-size: 0.95rem;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.dataTables_wrapper .dataTables_paginate {
    text-align: center !important;
    float: none !important;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eef2f6;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none !important;
    border-radius: 12px !important;
    padding: 0.6rem 1rem !important;
    margin: 0 3px !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    transition: all 0.3s !important;
    min-width: 45px;
    text-align: center;
    display: inline-block !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #1e3c72, #2a5298) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(42, 82, 152, 0.3) !important;
    transform: translateY(-2px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
    background: linear-gradient(135deg, #2a5298, #1e3c72) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 82, 152, 0.4) !important;
}

/* Modal Tasarımı - Modern ve Şık */
.modal-content {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s;
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 12px;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 2px solid #eef2f6;
    padding: 1.5rem 2rem;
}

/* Detay Grid - Modern Tasarım */
.detay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.detay-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detay-item:hover {
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
    border-color: #2a5298;
}

.detay-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detay-label i {
    color: #2a5298;
    font-size: 1rem;
    background: white;
    padding: 4px;
    border-radius: 8px;
}

.detay-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
    line-height: 1.5;
}

.detay-value-full {
    grid-column: span 2;
}

/* Bilgilendirme Alert - Modern Tasarım */
.alert-info {
    background: linear-gradient(135deg, #e6f0fa, #d4e4f5);
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    color: #1e3c72;
    border-left: 6px solid #2a5298;
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.1);
}

.alert-info h5 {
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-info i {
    color: #2a5298;
    font-size: 1.2rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 3rem;
}

.spinner-border {
    width: 4rem;
    height: 4rem;
    color: #2a5298;
    border-width: 0.25rem;
}

/* Responsive Tasarım - Mobil İyileştirmeleri */
@media (max-width: 992px) {
    .imar-header-section {
        padding: 2rem;
    }
    
    .imar-header-section h1 {
        font-size: 1.8rem;
    }
    
    .filter-card {
        padding: 1.5rem;
    }
    
    #imarTable thead th {
        padding: 1rem 0.6rem;
        font-size: 0.85rem;
    }
    
    #imarTable tbody td {
        padding: 1rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .document-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-width: 75px;
    }
    
    .askida-badge {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 105px;
    }
    
    .durum-btn {
        max-width: 140px;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .detay-grid {
        grid-template-columns: 1fr;
    }
    
    .detay-value-full {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    /* Mobilde tablo başlıklarının da kaymasını sağla */
    .table-responsive,
    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Tablo genişliğini sabitle */
    #imarTable {
        min-width: 800px;
        table-layout: fixed;
    }
    
    /* Sütun genişliklerini mobilde de koru */
    .aski-durumu-header { width: 120px !important; }
    .belgeler-header { width: 200px !important; }
    .aski-tarih-header { width: 180px !important; }
    .meclis-header { width: 180px !important; }
    .durum-header { width: 160px !important; }
    
    /* Hücre genişliklerini sütunlarla eşitle */
    #imarTable td:nth-child(1) { width: 120px !important; }
    #imarTable td:nth-child(2) { width: 200px !important; }
    #imarTable td:nth-child(3) { width: 180px !important; }
    #imarTable td:nth-child(4) { width: 180px !important; }
    #imarTable td:nth-child(5) { width: 160px !important; }
    
    /* DataTables wrapper düzeltmesi */
    .dataTables_wrapper {
        overflow-x: auto;
    }
    
    .dataTables_wrapper .dataTables_scrollBody {
        overflow-x: visible !important;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .dataTables_wrapper .dataTables_paginate {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.5rem 0.8rem !important;
        min-width: 38px;
        font-size: 0.8rem !important;
    }
    
    .dataTables_wrapper .dataTables_info {
        text-align: center;
    }
    
    /* Mobilde butonları daha kullanışlı yap */
    .durum-btn {
        max-width: 130px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .document-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 70px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    #imarTable {
        min-width: 750px;
    }
    
    .aski-durumu-header { width: 150px !important; }
    .belgeler-header { width: 150px !important; }
    .aski-tarih-header { width: 170px !important; }
    .meclis-header { width: 170px !important; }
    .durum-header { width: 150px !important; }
    
    #imarTable td:nth-child(1) { width: 150px !important; }
    #imarTable td:nth-child(2) { width: 150px !important; }
    #imarTable td:nth-child(3) { width: 170px !important; }
    #imarTable td:nth-child(4) { width: 170px !important; }
    #imarTable td:nth-child(5) { width: 150px !important; }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#imarTable tbody tr {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

#imarTable tbody tr:nth-child(1) { animation-delay: 0.1s; }
#imarTable tbody tr:nth-child(2) { animation-delay: 0.2s; }
#imarTable tbody tr:nth-child(3) { animation-delay: 0.3s; }
#imarTable tbody tr:nth-child(4) { animation-delay: 0.4s; }
#imarTable tbody tr:nth-child(5) { animation-delay: 0.5s; }
#imarTable tbody tr:nth-child(6) { animation-delay: 0.6s; }
#imarTable tbody tr:nth-child(7) { animation-delay: 0.7s; }
#imarTable tbody tr:nth-child(8) { animation-delay: 0.8s; }
#imarTable tbody tr:nth-child(9) { animation-delay: 0.9s; }
#imarTable tbody tr:nth-child(10) { animation-delay: 1s; }



      .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
            line-height: 30px;
            padding-left: 12px;
        }





        