* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background-color: #050816;
    color: #e5e7eb;
}

a {
    color: #60a5fa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: radial-gradient(circle at top left, #1f2937, #020617);
    padding: 24px 16px;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.sidebar h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.nav-section {
    margin-top: 16px;
}

.nav-section h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 8px;
}

.nav-link {
    display: block;
    padding: 8px 10px;
    border-radius: 999px;
    color: #e5e7eb;
    font-size: 14px;
    margin-bottom: 4px;
    transition: background 0.15s ease, transform 0.05s ease;
}

.nav-link:hover {
    background-color: rgba(55, 65, 81, 0.8);
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(to right, #2563eb, #7c3aed);
}

.main {
    flex: 1;
    padding: 24px 32px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-title {
    font-size: 24px;
    font-weight: 600;
}

.header-subtitle {
    font-size: 14px;
    color: #9ca3af;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: radial-gradient(circle at top left, #111827, #020617);
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(55, 65, 81, 0.8);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.card-title {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.card-value {
    font-size: 22px;
    font-weight: 600;
}

.card-tag {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.table-wrapper {
    background: radial-gradient(circle at top left, #020617, #020617);
    border-radius: 18px;
    border: 1px solid rgba(55, 65, 81, 0.8);
    padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.table-title {
    font-size: 16px;
    margin-bottom: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    padding: 8px 6px;
    text-align: left;
}

th {
    color: #9ca3af;
    border-bottom: 1px solid rgba(55, 65, 81, 0.8);
}

tr:nth-child(even) {
    background-color: rgba(15, 23, 42, 0.6);
}

.badge {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
}

.badge-red {
    background-color: rgba(248, 113, 113, 0.2);
    color: #fecaca;
}

.badge-yellow {
    background-color: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.badge-green {
    background-color: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.btn {
    border-radius: 999px;
    padding: 6px 14px;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    color: white;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 3px 10px;
    font-size: 12px;
}

.btn-danger {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, #111827, #020617);
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

.login-card h1 {
    font-size: 20px;
    margin-bottom: 6px;
}

.login-card p {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #e5e7eb;
}

input {
    width: 100%;
    padding: 8px 9px;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(17, 24, 39, 0.9);
    color: #e5e7eb;
    font-size: 13px;
}

input:focus {
    outline: none;
    border-color: #3b82f6;
}

.error {
    color: #fecaca;
    font-size: 12px;
    margin-bottom: 8px;
}
