/* assets/css/main.css */
:root {
    --primary: #0f4c5c;
    --secondary: #1f6e8c;
    --bg: #f4f7f9;
    --surface: #ffffff;
    --border: #cbd5e1;
    --text: #1e293b;
    --muted: #64748b;
    --success: #15803d;
    --warn: #b45309;
    --danger: #b91c1c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Nyala", "Noto Sans Ethiopic", "Calibri", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.auth-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}

.topbar {
    height: 58px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.layout-body {
    display: flex;
    min-height: calc(100vh - 96px);
}

.sidebar {
    width: 245px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 14px 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    text-decoration: none;
    border-left: 4px solid transparent;
}

.nav-link.active,
.nav-link:hover {
    background: #eef6f8;
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.main-content {
    flex: 1;
    padding: 22px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.table th,
.table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table th {
    background: #eef2f6;
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm { padding: 5px 10px; font-size: 0.85rem; }

.alert-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 14px;
}

.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input,
.form-group select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 5px;
}

.lang-switcher a {
    color: #dbeafe;
    text-decoration: none;
    margin-right: 8px;
    font-size: 0.85rem;
}
.lang-switcher a.active { font-weight: 700; text-decoration: underline; color: #fff; }

.app-footer {
    height: 38px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--muted);
}