* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: #0b1120;
    color: #e5e7eb;
}

a {
    color: #38bdf8;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: linear-gradient(90deg, #020617, #111827);
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #facc15, #eab308 40%, #854d0e);
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topnav a {
    color: #e5e7eb;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
}
.topnav a:hover {
    border-color: #4b5563;
    background: #020617;
}

.btn-logout {
    background: #b91c1c;
    border-color: #b91c1c;
}
.btn-logout:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.main-container {
    max-width: 1180px;
    margin: 24px auto;
    padding: 0 16px 40px 16px;
}

/* Auth */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1f2937, #020617);
}

.auth-card {
    background: rgba(15,23,42,0.95);
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 360px;
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
    text-align: center;
}

.auth-card label {
    font-size: 13px;
    color: #9ca3af;
    display: block;
    margin-bottom: 4px;
}

.auth-card input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    margin-bottom: 16px;
}

.auth-card button {
    width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(to right, #22c55e, #16a34a);
    color: #022c22;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}
.auth-card button:hover {
    opacity: 0.95;
}

.auth-card .lang-switch {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* Cards */
.card {
    background: radial-gradient(circle at top left, rgba(55,65,81,0.5), rgba(15,23,42,0.98));
    border-radius: 18px;
    padding: 20px 20px 24px 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(148,163,184,0.15);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Forms */
.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 12px;
}

.form-grid label {
    font-size: 13px;
    color: #cbd5f5;
    display: block;
    margin-bottom: 4px;
}

.form-grid input[type="file"],
.form-grid select,
.form-grid input[type="number"] {
    width: 100%;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid #4b5563;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

button, .btn, .btn-secondary {
    border-radius: 999px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

button, .btn {
    background: linear-gradient(to right, #22c55e, #16a34a);
    color: #022c22;
    font-weight: 600;
}
button:hover, .btn:hover {
    opacity: 0.95;
}

.btn-secondary {
    background: #020617;
    border: 1px solid #4b5563;
    color: #e5e7eb;
}
.btn-secondary:hover {
    background: #111827;
}

/* Alerts */
.alert {
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}
.alert-error {
    background: rgba(127,29,29,0.9);
    color: #fee2e2;
}

/* Filters */
.filter-bar {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin: 10px 0 16px 0;
}

.filter-bar label {
    font-size: 13px;
    color: #cbd5f5;
    display: block;
    margin-bottom: 4px;
}

.filter-bar select,
.filter-bar input[type="number"] {
    width: 100%;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid #4b5563;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    margin-top: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(55,65,81,0.7);
    white-space: nowrap;
}

.data-table thead {
    background: rgba(15,23,42,0.9);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(15,23,42,0.6);
}

/* Print */
@media print {
    body {
        background: #ffffff;
        color: #000000;
    }
    .topbar {
        display: none;
    }
    .card {
        box-shadow: none;
        border-radius: 0;
        border: none;
        background: #ffffff;
        color: #000000;
    }
    .main-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}
