/* AkcanPOS v3 Web Panel - İl İlçe Yönetimi Stilleri */
/* Mobil uygulama ile uyumlu tasarım */

.il-ilce-yonetimi-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.header-content h1 {
    color: #2C5F4A;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.header-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* Section Styling */
.selection-section,
.districts-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.section-title h3 {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-stats {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Form Styling */
.selection-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #374151;
    font-size: 16px;
    font-weight: 500;
}

.form-group-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.form-group.flex-grow {
    flex: 1;
}

/* Dropdown Styling - Mobil uygulama benzeri */
.dropdown-container {
    position: relative;
}

.dropdown-btn {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #f9fafb;
    border: 2px solid #6b7280;
    border-radius: 8px;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-btn:hover:not(:disabled) {
    border-color: #2C5F4A;
    background: white;
}

.dropdown-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.dropdown-btn i {
    color: #6b7280;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #2C5F4A 0%, #1e3f32 100%);
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
    justify-content: center;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 95, 74, 0.3);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* İlçe Listesi */
.districts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.district-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 2px solid #6b7280;
    border-radius: 8px;
    transition: all 0.2s;
}

.district-item:hover {
    border-color: #2C5F4A;
    box-shadow: 0 2px 8px rgba(44, 95, 74, 0.1);
}

.district-info {
    display: flex;
    gap: 20px;
    flex: 1;
}

.province-name,
.district-name {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

.province-name {
    min-width: 120px;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

/* Empty State */
.empty-districts {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-districts i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.empty-districts p {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.empty-districts small {
    font-size: 14px;
    color: #9ca3af;
}

/* Tam Ekran Sayfalar */
.province-selection-page,
.district-selection-page {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #2C5F4A;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.btn-back:hover {
    background: #f0f9ff;
    transform: translateX(-2px);
}

.selected-province {
    color: #6b7280;
    font-size: 16px;
    margin: 8px 0 0 0;
    font-weight: 500;
}

/* Search Section */
.search-section {
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 1.5px solid #d1d5db;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #2C5F4A;
    box-shadow: 0 0 0 3px rgba(44, 95, 74, 0.1);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* List Container */
.list-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.provinces-list,
.districts-list {
    max-height: 500px;
    overflow-y: auto;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(44, 95, 74, 0.05);
}

.item-name {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

.selected-indicator {
    color: #10b981;
    font-size: 18px;
}

/* Loading & Empty States */
.loading-state,
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
    gap: 12px;
}

.loading-state i {
    font-size: 20px;
    color: #2C5F4A;
}

/* Responsive Design */
@media (max-width: 768px) {
    .il-ilce-yonetimi-container {
        padding: 15px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .form-group-row {
        flex-direction: column;
        gap: 15px;
    }

    .district-info {
        flex-direction: column;
        gap: 8px;
    }

    .province-name {
        min-width: auto;
        font-size: 14px;
        color: #6b7280;
    }

    .search-box {
        max-width: none;
    }
}

/* Scrollbar Styling */
.provinces-list::-webkit-scrollbar,
.districts-list::-webkit-scrollbar {
    width: 6px;
}

.provinces-list::-webkit-scrollbar-track,
.districts-list::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.provinces-list::-webkit-scrollbar-thumb,
.districts-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.provinces-list::-webkit-scrollbar-thumb:hover,
.districts-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.list-item,
.district-item {
    animation: fadeIn 0.3s ease-out;
}

/* Focus States */
.dropdown-btn:focus,
.btn-primary:focus,
.btn-back:focus {
    outline: 2px solid #2C5F4A;
    outline-offset: 2px;
}

/* Hover Efektleri */
.list-item:hover .item-name {
    color: #2C5F4A;
}

.district-item:hover .province-name,
.district-item:hover .district-name {
    color: #2C5F4A;
}