* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
}

a {
    text-decoration: none;
    color: inherit;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, #1e3a8a 0, transparent 35%),
        linear-gradient(135deg, #111827, #0f172a);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.login-card h1 {
    margin: 0;
    font-size: 30px;
    color: #111827;
}

.login-subtitle {
    margin-top: 6px;
    margin-bottom: 24px;
    color: #6b7280;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    width: 100%;
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    border: 1px solid #d1d5db;
    color: #374151;
    background: #ffffff;
}

.btn-outline:hover {
    background: #f3f4f6;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.risk-note {
    margin-top: 20px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 10px;
    color: #92400e;
    font-size: 13px;
}

.app-body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #111827;
    color: #fff;
    padding: 24px 18px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.sidebar-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    color: #d1d5db;
    font-weight: 600;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #1f2937;
    color: #ffffff;
}

.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 28px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.topbar h1 {
    margin: 0;
    font-size: 30px;
}

.topbar p {
    margin: 5px 0 0;
    color: #6b7280;
}

.warning-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 22px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-label {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.card-value {
    font-size: 26px;
    color: #111827;
}

.panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.panel h2 {
    margin-top: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

th {
    color: #374151;
    background: #f9fafb;
}

.empty-state {
    color: #6b7280;
}

@media (max-width: 900px) {
    .app-body {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        padding: 18px;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 18px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
