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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    padding: 2rem;

    /* GESTION DU FOND */
    background-color: #121212; /* Couleur de repli */
    background-size: cover; /* L'image couvre tout l'écran */
    background-position: center;
    background-attachment: fixed; /* L'image ne bouge aps quand on scroll */
    background-repeat: no-repeat;

    /* Astuce pro : un dégradé sombre par dessus l'image pour le contraste */
    /* Note: backgroundImage sera écrasé par le JS donc on ruse un peu */
    transition: background-image 0.5s ease-in-out; /* Effet fondu sympa */
}

/* Ecran de connexion centré */
.login-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #121212;
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}

.login-box {
    background: #1e1e1e;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #333;
    background: #2c2c2c;
    color: white;
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid #4dabf7;
    color: #4dabf7;
    margin-left: 10px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

h1 { font-size: 2.5rem; }
.clock { font-size: 3rem; font-weight: bold; color: #ffffff; }

/* Grille du dashboard */
.dashboard-container {
    display: grid;
    /* Créer des colonnes automatiques de minimum 400px */
    grid-template-columns: repeat(autofit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Style des "cartes" (Widgets) */
.widget {
    background-color: rgba(0, 0, 0, 0.6) !important; /* 60% opaque */
    backdrop-filter: blur(10px); /* Effet de flou "verre dépoli" style Apple/Windows */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input {
    padding: 10px;
    margin-top: 10px;
    margin-right: 10px;
    font-size: 1.2rem;
    width: 70%;
    background-color: white;
}

button {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #4dabf7;
    border: none;
    color: white;
    cursor: pointer;
}