/* Réinitialisation de base */
* { box-sizing: border-box; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background: #f4f7f6; 
    color: #333; 
    margin: 0; 
    padding: 0; 
}
h1, h2 { color: #1a237e; font-weight: 600; }
h1 { font-size: 2.2em; margin-bottom: 10px; }
h2 { font-size: 1.5em; margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 10px; }

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 0;
    margin-bottom: 30px;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    font-size: 1.5em;
    font-weight: 600;
    color: #1a237e;
}
.button, .button-logout {
    background: #1a237e;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.button:hover, .button-logout:hover {
    background: #283593;
}
.button-logout { background: #c62828; }
.button-logout:hover { background: #b71c1c; }

/* Conteneur principal */
.container { 
    max-width: 1200px; 
    margin: auto; 
    padding: 0 20px;
}

/* Page de Login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.login-card {
    width: 100%;
    max-width: 400px;
}

/* Grille du tableau de bord */
.dashboard { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    margin-top: 20px;
}
.card { 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    padding: 25px; 
}
.card-full { grid-column: 1 / -1; }

.card h1 { font-size: 2.8em; color: #333; margin: 10px 0 0 0; }
#equityChart { max-height: 400px; width: 100%; }

/* Listes et Tables */
#list-active-pairs { padding-left: 20px; font-size: 1.1em; line-height: 1.6; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #ddd; }
th { background: #f9f9f9; font-weight: 600; }
.profit { color: #2e7d32; font-weight: bold; }
.loss { color: #c62828; font-weight: bold; }

/* Panneau Admin */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.admin-form .form-group {
    margin-bottom: 15px;
}
.admin-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.button-revoke {
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
}
.button-revoke:hover { text-decoration: underline; }