/* --------- BASE GLOBALE --------- */
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --------- PAGE DE LOGIN --------- */
.login-body {
    background: linear-gradient(135deg, #0a1229, #0d1838);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.login-container {
    width: 350px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.25);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 600;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 300;
    color: #ff3b3b;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #0f1a3c;
    border: 1px solid #23315e;
    border-radius: 6px;
    color: white;
    font-size: 15px;
}

.login-container input:focus {
    outline: none;
    border-color: #ff3b3b;
    box-shadow: 0 0 8px #ff3b3b;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #ff3b3b;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.login-container button:hover {
    background: #ff1c1c;
    box-shadow: 0 0 10px #ff3b3b;
}

.error {
    color: #ff4b4b;
    text-align: center;
    margin-top: 10px;
}

/* --------- LAYOUT INTRANET (DASHBOARD + MON COMPTE) --------- */

.app-body {
    background: #edf1ff;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #050819;
    color: #e5e7eb;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}

.sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    margin-bottom: 8px;
}

.sidebar-avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #050819;
}

.sidebar-name {
    font-weight: 600;
    font-size: 15px;
}

.sidebar-role {
    font-size: 13px;
    color: #9ca3af;
}

.sidebar-divider-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 18px 0 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 4px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-link span.icon {
    margin-right: 8px;
    font-size: 16px;
}

.nav-link:hover {
    background: #111827;
    color: #ffffff;
}

.nav-link.active {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 0 0 1px #f97373;
}

/* MAIN */
.main {
    flex: 1;
    padding: 20px 30px;
    background: #f3f4ff;
}

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

.main-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.main-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.main-date {
    font-size: 13px;
    color: #6b7280;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title span.icon {
    font-size: 18px;
}

.card-text {
    font-size: 14px;
    color: #4b5563;
}

/* Simple bouton dans le contenu */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: #ff3b3b;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: #ff1c1c;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.8);
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.status-g { background:#22c55e; color:white; }
.status-a { background:#3b82f6; color:white; }
.status-r { background:#fb923c; color:white; }
.status-k { background:#eab308; color:white; }
.status-i { background:#374151; color:white; }

