/* ============================================================
   ADMIN DASHBOARD – Les Reines du Shopping
   ============================================================ */

/* ── Admin Layout ───────────────────────────────────────────── */
.admin-page {
    min-height: 100vh;
    background: #0F0F13;
    color: var(--white);
    font-family: var(--font-body);
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 15, 19, 0.85) 0%, rgba(26, 10, 20, 0.9) 100%), url('../images/candidates_login_bg.png') center/cover no-repeat;
    padding: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.login-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.login-sub {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 2rem;
}

.login-card h2 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.login-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
}

.login-card .form-group input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.login-card .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-card .form-group input:focus {
    border-color: var(--pink);
    background: rgba(255, 255, 255, 0.08);
}

.login-card .form-group label {
    color: rgba(255, 255, 255, 0.6);
}

.login-error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #ff6b6b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #0D0D11;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    padding: 1.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand .brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
}

.sidebar-brand .sub {
    font-size: 0.7rem;
    color: var(--pink);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--white);
    background: rgba(233, 30, 140, 0.08);
    border-left-color: var(--pink);
}

.nav-item .nav-icon {
    font-size: 1.1rem;
    width: 24px;
}

.sidebar-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.sidebar-footer button:hover {
    color: #ff6b6b;
}

/* ── Main Content ───────────────────────────────────────────── */
.admin-main {
    flex: 1;
    overflow-y: auto;
}

.admin-topbar {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-content {
    padding: 2rem;
}

/* ── Stats Grid ─────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(233, 30, 140, 0.2);
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-value.pink {
    color: var(--pink-light);
}

.stat-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

.stat-icon {
    float: right;
    font-size: 1.8rem;
    opacity: 0.5;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Filters Bar ────────────────────────────────────────────── */
.filters-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filters-bar label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.filter-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.5rem 2rem 0.5rem 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.filter-select option {
    background: #1a1a22;
}

.search-input {
    flex: 1;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    border-color: var(--pink);
}

/* ── Candidates Grid ────────────────────────────────────────── */
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.candidate-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.candidate-card:hover {
    border-color: rgba(233, 30, 140, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.candidate-card.new::after {
    content: 'Nouveau';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--pink);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-photo {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 1.2rem;
}

.card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.card-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.72rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.card-actions a {
    flex: 1;
    text-align: center;
    padding: 0.55rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: #25d366;
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.25);
}

.btn-email {
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.25);
    color: var(--pink-light);
}

.btn-email:hover {
    background: rgba(233, 30, 140, 0.2);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.status-new {
    background: rgba(233, 30, 140, 0.12);
    color: #FF80CE;
    border: 1px solid rgba(233, 30, 140, 0.2);
}

.status-review {
    background: rgba(255, 193, 7, 0.12);
    color: #FFD54F;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-selected {
    background: rgba(76, 175, 80, 0.12);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.status-rejected {
    background: rgba(244, 67, 54, 0.12);
    color: #EF9A9A;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: #17171F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #17171F;
    z-index: 1;
}

.modal-header h3 {
    font-size: 1.2rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 2rem;
}

.modal-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-photo {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: rgba(255, 255, 255, 0.04);
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
}

.modal-video {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    background: #000;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-item label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.info-item p {
    font-size: 0.92rem;
    color: var(--white);
    margin: 0;
}

.modal-text-block {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
}

.modal-text-block label {
    display: block;
    font-size: 0.72rem;
    color: var(--pink-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-text-block p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.modal-actions a,
.modal-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 600;
}

.modal-status-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.7rem 2rem 0.7rem 1rem;
    cursor: pointer;
    outline: none;
    appearance: none;
}

.modal-status-select option {
    background: #1a1a22;
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* ── Stats Section & Charts ──────────────────────────────────── */
.stats-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.chart-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-card h3 span {
    font-size: 0.8rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.4);
}

.chart-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.chart-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chart-row-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.chart-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.chart-value {
    color: var(--pink-light);
    font-weight: 600;
}

.chart-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--pink-light));
    border-radius: 4px;
    width: 0;
    transition: width 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.chart-bar.secondary {
    background: linear-gradient(90deg, #9b51e0, #bb6bd9);
}

.chart-bar.accent {
    background: linear-gradient(90deg, #2f80ed, #56ccf2);
}

.chart-bar.warning {
    background: linear-gradient(90deg, #f2994a, #f2c94c);
}