/* FlashCall Platform — Design System partagé */
:root {
    --primary: #1e3c72;
    --primary-light: #2a5298;
    --accent: #e65c00;
    --success: #28a745;
    --danger: #dc3545;
    --bg: #f4f6f9;
    --border: #e0e0e0;
    --text: #333;
    --text-muted: #666;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Navbar --- */
.navbar {
    background: white; border-bottom: 1px solid var(--border);
    padding: 16px 0; display: flex; justify-content: space-between; align-items: center;
}
.navbar .logo { font-weight: 800; font-size: 20px; color: var(--primary); text-decoration: none; }
.navbar nav a { margin-left: 24px; color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 14px; }
.navbar nav a:hover { color: var(--primary); }

/* --- Boutons --- */
.btn {
    display: inline-block; padding: 12px 24px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline { background: white; border: 2px solid var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; text-align: center; }

/* --- Cartes --- */
.card {
    background: white; border-radius: 12px; padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--border);
}

/* --- Formulaires --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group select {
    width: 100%; padding: 12px; border: 2px solid var(--border); border-radius: 8px; font-size: 15px;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); outline: none; }

/* --- Tableaux --- */
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
table th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }

/* --- Badges --- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-muted { background: #e2e3e5; color: #383d41; }

/* --- Layout dashboard/backoffice --- */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px; background: var(--primary); color: white; padding: 20px 0; flex-shrink: 0;
}
.sidebar .logo { padding: 0 20px 20px; font-weight: 800; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.sidebar a {
    display: block; padding: 12px 20px; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px;
}
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,0.1); color: white; }
.main-content { flex: 1; padding: 30px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { text-align: center; }
.stat-card .value { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-card .label { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

code, .code-block {
    font-family: 'SF Mono', Monaco, monospace; background: #f0f0f0; padding: 2px 6px;
    border-radius: 4px; font-size: 13px;
}
.code-block { display: block; padding: 16px; overflow-x: auto; white-space: pre; }
