/*
 * Admin Panel CSS
 */

:root {
    --sidebar-width: 260px;
    --header-height: 70px;
    --haiti-blue: #002d62;
    --haiti-red: #d21034;
    --sidebar-bg: #1a1d2e;
    --sidebar-hover: #252944;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f6fa;
}

/* ===== ADMIN WRAPPER ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s;
}

.sidebar-brand:hover {
    color: var(--haiti-red);
    text-decoration: none;
}

.sidebar-brand i {
    font-size: 28px;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.menu-section {
    padding: 15px 20px 8px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    position: relative;
}

.menu-item a i {
    width: 24px;
    margin-right: 12px;
    font-size: 16px;
}

.menu-item a:hover {
    background: var(--sidebar-hover);
    color: #fff;
    text-decoration: none;
    padding-left: 25px;
}

.menu-item.active a {
    background: var(--haiti-blue);
    color: #fff;
    border-left: 4px solid var(--haiti-red);
}

.menu-item .badge {
    margin-left: auto;
    background: var(--haiti-red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.badge-warning {
    background: #ffc107 !important;
}

.badge-danger {
    background: #dc3545 !important;
}

/* ===== MAIN CONTENT ===== */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    height: var(--header-height);
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.btn-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--haiti-blue);
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-user-menu:hover {
    background: #f5f6fa;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--haiti-blue), var(--haiti-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.user-name {
    font-weight: 600;
    color: var(--haiti-blue);
}

/* ===== CONTENT AREA ===== */
.admin-content {
    flex: 1;
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--haiti-blue);
    margin-bottom: 5px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 15px;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    height: 100%;
}

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

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    flex-shrink: 0;
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, var(--haiti-blue), #003d82);
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #007bff);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--haiti-blue);
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-detail .badge {
    margin-right: 5px;
    font-size: 11px;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.card-header {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--haiti-blue);
}

.card-body {
    padding: 25px;
}

.card-footer {
    background: #f8f9fa;
    border-top: 2px solid #f0f0f0;
    padding: 15px 25px;
    border-radius: 0 0 15px 15px;
}

/* ===== TABLES ===== */
.table {
    font-size: 14px;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--haiti-blue);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===== COMMENTS LIST ===== */
.comments-list {
    max-height: 500px;
    overflow-y: auto;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}

.comment-item:hover {
    background: #f8f9fa;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-header strong {
    color: var(--haiti-blue);
}

.comment-content p {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.6;
}

.comment-content small {
    color: #6c757d;
}

.comment-status {
    margin-top: 10px;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--haiti-blue);
    border-color: var(--haiti-blue);
}

.btn-primary:hover {
    background: var(--haiti-red);
    border-color: var(--haiti-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 45, 98, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ===== FOOTER ===== */
.admin-footer {
    background: #fff;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.admin-footer p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
}

/* ===== ALERTS ===== */
.admin-alerts {
    padding: 20px 30px 0;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert i {
    margin-right: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .btn-menu-toggle {
        display: block;
    }

    .sidebar-toggle {
        display: block;
    }

    .stat-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .admin-header {
        padding: 0 15px;
    }

    .admin-content {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 24px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .user-name {
        display: none;
    }
}
