/* Admin Dashboard Styles - FM Network */

/* Hero section admin */
#admin-dashboard .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

[data-bs-theme="dark"] #admin-dashboard .hero {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
}

/* Tabs styling */
.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #c5d81b;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #c5d81b;
    background: transparent;
    border-bottom: 3px solid #c5d81b;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #adb5bd;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    color: #c5d81b;
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
}

[data-bs-theme="dark"] .card-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #c5d81b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

[data-bs-theme="dark"] .table thead th {
    color: #adb5bd;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(197, 216, 27, 0.1);
}

/* Image cards */
.image-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-card .card-img-top {
    background: #f8f9fa;
}

[data-bs-theme="dark"] .image-card .card-img-top {
    background: #2c2c2c;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-card img:hover {
    opacity: 0.8;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #c5d81b, #9fb312);
    border: none;
    color: #0b0b0b;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4e521, #b3c71a);
    color: #0b0b0b;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #34ce57, #28a745);
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: #c5d81b;
    box-shadow: 0 0 0 0.25rem rgba(197, 216, 27, 0.25);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 1rem;
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: rgba(255,255,255,0.1);
}

/* Access denied */
#access-denied {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Progress bar upload */
.progress {
    height: 1.5rem;
    border-radius: 0.5rem;
}

.progress-bar {
    background: linear-gradient(135deg, #c5d81b, #9fb312);
}

/* Badge admin */
.badge.bg-danger {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    letter-spacing: 1px;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column !important;
        gap: 1rem;
    }
    
    .card-header .input-group,
    .card-header .d-flex {
        width: 100%;
    }
    
    .card-header .form-select {
        max-width: 100% !important;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c5d81b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9fb312;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #2c2c2c;
}
