* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f6f8; color: #1a1a1a; }

/* --- Login (fon nwa konplè, entèfas santre) --- */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #0A0A0C; }
.login-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.login-box { background: #15161A; padding: 40px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.5); width: 340px; border: 1px solid #26272C; }
.login-box h1 { font-size: 18px; margin-bottom: 8px; color: #fff; text-align: center; font-weight: 500; }
.lang-switch { text-align: center; margin-bottom: 20px; font-size: 13px; }
.lang-switch a { color: #5DA9E0; text-decoration: none; }
.login-box label { display: block; margin-top: 12px; font-size: 13px; color: #9A9AA0; }
.login-box input { width: 100%; padding: 10px; margin-top: 4px; border: 1px solid #34353B; border-radius: 6px; background: #1F2024; color: #fff; }
.login-box input:focus { outline: none; border-color: #5DA9E0; }
.login-box button { width: 100%; margin-top: 20px; padding: 10px; background: #123A6B; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
.login-box button:hover { background: #174a89; }
.alert { background: #3a1a1a; color: #ff8080; padding: 10px; border-radius: 6px; font-size: 13px; margin-bottom: 10px; }
.login-footer { text-align: center; margin-top: 24px; font-size: 12px; color: #6b6c72; line-height: 1.7; }
.login-footer a { color: #5DA9E0; text-decoration: none; }
.login-credit { text-align: center; margin-top: 14px; font-size: 10px; color: #ffffff; }
.login-credit a { color: #D9822B; text-decoration: none; }

/* --- App layout --- */
.topbar { background: #1F3864; color: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; text-decoration: none; margin-left: 12px; }
.btn-logout { background: rgba(255,255,255,.15); padding: 6px 12px; border-radius: 6px; }
.layout { display: flex; min-height: calc(100vh - 52px); }
.sidebar { width: 220px; background: #fff; border-right: 1px solid #e2e2e2; padding: 20px 0; }
.sidebar ul { list-style: none; }
.sidebar a { display: block; padding: 10px 24px; color: #333; text-decoration: none; font-size: 14px; }
.sidebar a:hover { background: #f0f2f5; }
.content { flex: 1; padding: 30px; }

.layout-simple { max-width: 900px; margin: 30px auto; background: #fff; padding: 30px; border-radius: 10px; }
.layout-simple a { color: #1F3864; text-decoration: none; font-size: 13px; }

.btn { display: inline-block; margin: 14px 0; padding: 10px 20px; background: #1F3864; color: #ffffff !important; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 600; border: none; }
.btn:hover { background: #2a4a80; }
.btn:visited { color: #ffffff !important; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.data-table th, .data-table td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.data-table th { background: #f9fafb; color: #555; }

.form-box { display: flex; flex-direction: column; max-width: 400px; margin-top: 20px; }
.form-box label { margin-top: 12px; font-size: 13px; color: #555; }
.form-box input, .form-box select { padding: 9px; margin-top: 4px; border: 1px solid #ccc; border-radius: 6px; }
.form-box button { margin-top: 20px; padding: 10px; background: #1F3864; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
