



:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --accent: #2b8a3e;
    --danger: #c0392b;
    --warning: #b7791f;
    --bg: #f4f6f8;
    --card: #ffffff;
    --border: #dfe3e8;
    --text: #1f2937;
    --muted: #6b7280;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
}

.brand-title { font-size: 1.2rem; font-weight: 700; display: block; }
.brand-sub { font-size: 0.8rem; opacity: 0.8; }

.topnav { display: flex; align-items: center; gap: 16px; }
.topnav a {
    color: white;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}
.topnav a:hover { background: rgba(255,255,255,0.3); }
.user-chip { font-size: 0.9rem; opacity: 0.9; }

.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
    color: white;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
}
.lang-switch a.lang-active { background: rgba(255,255,255,0.35); font-weight: 700; }
.lang-switch a:hover { background: rgba(255,255,255,0.3); }

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card h2, .card h3 { margin-top: 0; color: var(--primary); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}
.stat-box .num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-box .label { color: var(--muted); font-size: 0.85rem; }

form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

textarea { resize: vertical; min-height: 80px; }

button, .btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
}
button:hover, .btn:hover { background: var(--primary-light); }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #922b21; }
.btn-success { background: var(--accent); }
.btn-success:hover { background: #217a32; }
.btn-small { padding: 6px 12px; font-size: 0.8rem; margin-top: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
th { background: #f0f2f5; color: var(--primary); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
}
.badge-pending { background: var(--warning); }
.badge-under-review { background: #4a6ee0; }
.badge-approved { background: var(--accent); }
.badge-rejected { background: var(--danger); }
.badge-returned { background: #8e44ad; }
.badge-active { background: var(--accent); }
.badge-suspended, .badge-inactive { background: var(--danger); }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}
.alert-success { background: #e6f4ea; color: #217a32; border: 1px solid #b7e1c2; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; }

.footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 0.8rem;
}

.auth-wrap {
    max-width: 440px;
    margin: 60px auto;
}

.tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary);
    background: #eef2f7;
    font-size: 0.9rem;
}
.tabs a.active, .tabs a:hover { background: var(--primary); color: white; }

.link-plain { color: var(--primary-light); }
small.hint { color: var(--muted); display:block; margin-top: 4px; }


















:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --accent: #2b8a3e;
    --danger: #c0392b;
    --warning: #b7791f;
    --bg: #f4f6f8;
    --card: #ffffff;
    --border: #dfe3e8;
    --text: #1f2937;
    --muted: #6b7280;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
}

.brand-title { font-size: 1.2rem; font-weight: 700; display: block; }
.brand-sub { font-size: 0.8rem; opacity: 0.8; }

.topnav { display: flex; align-items: center; gap: 16px; }
.topnav a {
    color: white;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}
.topnav a:hover { background: rgba(255,255,255,0.3); }
.user-chip { font-size: 0.9rem; opacity: 0.9; }

.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
    color: white;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
}
.lang-switch a.lang-active { background: rgba(255,255,255,0.35); font-weight: 700; }
.lang-switch a:hover { background: rgba(255,255,255,0.3); }

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card h2, .card h3 { margin-top: 0; color: var(--primary); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}
.stat-box .num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-box .label { color: var(--muted); font-size: 0.85rem; }

form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

textarea { resize: vertical; min-height: 80px; }

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.captcha-row .captcha-question {
    background: var(--border, #e5e7eb);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}
.captcha-row input { width: auto; flex: 1; }

button, .btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
}
button:hover, .btn:hover { background: var(--primary-light); }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #922b21; }
.btn-success { background: var(--accent); }
.btn-success:hover { background: #217a32; }
.btn-small { padding: 6px 12px; font-size: 0.8rem; margin-top: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
th { background: #f0f2f5; color: var(--primary); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
}
.badge-pending { background: var(--warning); }
.badge-under-review { background: #4a6ee0; }
.badge-approved { background: var(--accent); }
.badge-rejected { background: var(--danger); }
.badge-returned { background: #8e44ad; }
.badge-active { background: var(--accent); }
.badge-suspended, .badge-inactive { background: var(--danger); }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}
.alert-success { background: #e6f4ea; color: #217a32; border: 1px solid #b7e1c2; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; }

.footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 0.8rem;
}

.auth-wrap {
    max-width: 440px;
    margin: 60px auto;
}

.tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary);
    background: #eef2f7;
    font-size: 0.9rem;
}
.tabs a.active, .tabs a:hover { background: var(--primary); color: white; }

.link-plain { color: var(--primary-light); }
small.hint { color: var(--muted); display:block; margin-top: 4px; }
.hint { color: var(--muted); }

