:root {
    --card-bg: rgba(15, 15, 20, 0.7);   
    --border-color: rgba(255, 51, 51, 0.25); 
    --red-primary: #ff3333;      
    --white: #ffffff;
    --gray-text: #9ca3af;        
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(rgba(10, 10, 14, 0.75), rgba(10, 10, 14, 0.75)), 
                url('https://i.imgur.com/CRPeAaQ.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(26, 26, 30, 0.9);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid var(--red-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* --- HEADER --- */
.header {
    background: rgba(20, 20, 24, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
    text-transform: uppercase;
}

.nav-btn:hover { color: var(--white); }

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--red-primary);
    transition: width 0.3s ease;
}

.nav-btn.active { color: var(--white); }
.nav-btn.active::after { width: 100%; }

.discord-btn {
    color: var(--gray-text);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}
.discord-btn:hover { color: var(--white); }

/* --- EFFET GLASSMORPHISM SUR LES CARTES --- */
.box-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.box-card:hover {
    border-color: rgba(255, 51, 51, 0.5);
    box-shadow: 0 20px 45px rgba(255, 51, 51, 0.15), inset 0 0 20px rgba(255, 51, 51, 0.05);
}

/* --- DESIGN LUMINEUX POUR LA BOUTIQUE --- */
.shop-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-6px);
    border-color: var(--red-primary);
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.3), inset 0 0 15px rgba(255, 51, 51, 0.15);
}

.status-monitor {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

.card-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 51, 51, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.status-monitor:hover .card-glow {
    opacity: 1;
}

.status-monitor > *:not(.card-glow) {
    position: relative;
    z-index: 1;
}

/* --- MAIN & SPA --- */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page { display: none; animation: fadeIn 0.3s ease-out; width: 100%; }
.page.active { display: block; }

#accueil.page.active {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 0.5px;
}

/* --- ACCUEIL : MONITEUR DE STATUT --- */
.monitor-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.status-monitor {
    padding: 2.5rem;
    width: 100%;
    max-width: 580px;
}

.monitor-header { text-align: center; margin-bottom: 2rem; }

.live-indicator {
    background: rgba(255, 51, 51, 0.15);
    color: var(--red-primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 51, 51, 0.3);
}
.live-indicator.offline {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.15);
}

.dot {
    height: 6px; width: 6px;
    background-color: var(--red-primary);
    border-radius: 50%;
    display: inline-block;
}
.live-indicator.offline .dot { background-color: #ef4444; }

.pulse {
    box-shadow: 0 0 0 rgba(255, 51, 51, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(255, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

.monitor-header h2 { font-size: 1.6rem; font-weight: 700; color: var(--white); }

.status-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.status-card {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    padding: 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-full-width { grid-column: 1 / -1; }
.status-card .icon { font-size: 1.4rem; }
.status-card .info { display: flex; flex-direction: column; }
.status-card .label { font-size: 0.7rem; color: var(--gray-text); text-transform: uppercase; font-weight: 600; }
.status-card .value { font-size: 1rem; font-weight: 600; margin-top: 2px; color: var(--white); }

/* BOUTON IP */
.ip-box {
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 51, 51, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}
.ip-box:hover { border-color: var(--red-primary); background: rgba(255, 51, 51, 0.08); }
.ip-box p { font-size: 0.7rem; color: var(--gray-text); margin-bottom: 4px; font-weight: 600; }
.ip-box h3 { color: var(--white); letter-spacing: 1px; font-size: 1.1rem; }

/* --- CONTENU & GRILLES --- */
.content-box { padding: 2.5rem; line-height: 1.7; color: var(--gray-text); }
.content-box h2 { color: var(--white); margin-top: 1.5rem; margin-bottom: 8px; font-size: 1.1rem; }
.content-box h2:first-child { margin-top: 0; }
.content-box ul { margin-left: 1.5rem; }
.content-box li { margin-bottom: 6px; }
.content-box strong { color: var(--white); }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card { padding: 1.5rem; text-align: center; }

.card-img-placeholder {
    height: 110px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 51, 51, 0.15);
}

.card-img-placeholder img.shop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.price { font-size: 1.1rem; font-weight: 700; margin: 10px 0; color: var(--red-primary); }

.action-btn {
    display: block;
    background-color: var(--red-primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
}
.action-btn:hover { background-color: #ff1a1a; transform: scale(1.02); }

/* Staff */
.staff-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--white); }
.staff-card .role { font-weight: 600; padding: 4px 10px; border-radius: 6px; display: inline-block; font-size: 0.75rem; background: rgba(255, 51, 51, 0.15); color: var(--red-primary); border: 1px solid rgba(255, 51, 51, 0.3); }

/* --- STYLES DU DASHBOARD ADMIN --- */
.admin-wrapper {
    display: flex;
    background: rgba(12, 12, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    min-height: 600px;
}

.admin-sidebar {
    width: 70px;
    background: rgba(18, 18, 24, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.sidebar-top, .sidebar-bottom { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.sidebar-icon { font-size: 1.2rem; cursor: pointer; padding: 10px; border-radius: 10px; color: var(--gray-text); transition: 0.2s; }
.sidebar-icon:hover, .sidebar-icon.active { background: rgba(255, 51, 51, 0.15); color: var(--red-primary); }

.admin-main { flex: 1; padding: 25px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }

.admin-topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.admin-title-box { display: flex; align-items: center; gap: 12px; }
.admin-title-box h3 { color: var(--white); font-size: 1.1rem; }
.admin-title-box p { color: var(--gray-text); font-size: 0.75rem; }
.admin-badge-online { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #10b981; font-weight: 600; display: flex; align-items: center; gap: 6px; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.admin-middle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.admin-bottom-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 15px; }

.admin-card { background: rgba(22, 22, 30, 0.7); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 20px; }
.card-label { font-size: 0.7rem; color: var(--gray-text); font-weight: 600; letter-spacing: 0.5px; }
.card-value { font-size: 1.6rem; color: var(--white); font-weight: 700; margin-top: 5px; }

.eco-circle-icon, .players-circle-icon, .duty-circle-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.eco-circle-icon { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.players-circle-icon { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.duty-circle-icon { background: rgba(255, 51, 51, 0.2); color: var(--red-primary); }

.eco-bar-info { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gray-text); margin-top: 8px; }
.eco-bar-info span:last-child { color: var(--white); font-weight: 600; }

.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.card-header-flex h3 { color: var(--white); font-size: 1rem; }
.filter-tabs { display: flex; gap: 5px; background: rgba(0,0,0,0.3); padding: 3px; border-radius: 6px; font-size: 0.7rem; color: var(--gray-text); }
.filter-tabs span { padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.filter-tabs span.active { background: rgba(255, 255, 255, 0.1); color: var(--white); font-weight: 600; }

.job-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--white); margin-bottom: 12px; }
.progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; margin: 0 15px; overflow: hidden; }
.progress-bar .fill { height: 100%; background: #3b82f6; border-radius: 3px; }

.activity-list { display: flex; flex-direction: column; gap: 10px; font-size: 0.8rem; color: var(--gray-text); }
.activity-item { display: flex; align-items: center; gap: 8px; }
.activity-item strong { color: var(--white); }
.activity-item .time { margin-left: auto; font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.dot-blue { width: 6px; height: 6px; background: #3b82f6; border-radius: 50%; }
.dot-green { width: 6px; height: 6px; background: #10b981; border-radius: 50%; }
.dot-orange { width: 6px; height: 6px; background: #f59e0b; border-radius: 50%; }
.dot-red { width: 6px; height: 6px; background: #ef4444; border-radius: 50%; }
.dot-purple { width: 6px; height: 6px; background: #8b5cf6; border-radius: 50%; }

/* --- FOOTER --- */
.footer {
    background: rgba(20, 20, 24, 0.75);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .header { flex-direction: column; gap: 15px; padding: 1rem; }
    nav .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .status-details { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-middle-grid { grid-template-columns: 1fr; }
    .admin-bottom-grid { grid-template-columns: 1fr; }
}
