* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #f4f6f9;
    color: #1d2939;
}

/* LOGIN */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #172554,
            #1e3a8a,
            #0369a1
        );
}

.login-container {
    width: 100%;
    max-width: 430px;
    padding: 25px;
}

.login-brand {
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.logo {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: auto;

    background: white;
    color: #1e3a8a;

    border-radius: 18px;

    font-size: 18px;
    font-weight: 800;
}

.login-brand h1 {
    margin-bottom: 6px;
    font-size: 30px;
}

.login-brand p {
    opacity: .85;
    line-height: 1.5;
}

.login-card {
    background: white;

    padding: 35px;

    border-radius: 16px;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.25);
}

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

.subtitle {
    color: #667085;
    margin-top: 0;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 7px;

    font-weight: 600;
}

input {
    width: 100%;
    padding: 13px;

    border: 1px solid #d0d5dd;

    border-radius: 8px;

    font-size: 15px;
}

input:focus {
    outline: none;
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37,99,235,.12);
}

button {
    margin-top: 25px;

    width: 100%;

    padding: 14px;

    border: 0;

    border-radius: 8px;

    background: #1d4ed8;

    color: white;

    font-weight: 700;
    font-size: 15px;

    cursor: pointer;
}

button:hover {
    background: #1e40af;
}

.alert {
    padding: 12px;

    background: #fef2f2;

    color: #b42318;

    border-radius: 8px;

    margin-bottom: 15px;
}

.login-footer {
    text-align: center;
    color: rgba(255,255,255,.7);

    margin-top: 20px;

    font-size: 13px;
}


/* DASHBOARD */

.topbar {
    height: 68px;

    background: white;

    border-bottom: 1px solid #e4e7ec;

    padding: 0 25px 0 250px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar strong {
    font-size: 18px;
}

.topbar span {
    margin-left: 10px;
    color: #667085;
    font-size: 13px;
}

.user-area {
    font-size: 14px;
}

.user-area a {
    margin-left: 15px;
    text-decoration: none;
    color: #dc2626;
}

.role {
    background: #eff6ff;
    color: #1d4ed8 !important;
    padding: 5px 8px;
    border-radius: 6px;
}

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 220px;

    background: #172554;

    padding: 20px 15px;
}

.nav-title {
    color: white;

    font-size: 24px;
    font-weight: 900;

    padding: 7px 12px 25px;
}

.sidebar a {
    display: block;

    color: #dbeafe;

    text-decoration: none;

    padding: 12px 14px;

    margin-bottom: 5px;

    border-radius: 8px;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255,255,255,.12);
    color: white;
}

.sidebar hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.15);
    margin: 15px 0;
}

.content {
    margin-left: 220px;
    padding: 30px;
}

.page-header h1 {
    margin: 0;
}

.page-header p {
    color: #667085;
}

.cards {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin: 30px 0;
}

.metric-card,
.panel {
    background: white;

    border-radius: 12px;

    border: 1px solid #e4e7ec;

    padding: 22px;
}

.metric-card span {
    display: block;
    color: #667085;
}

.metric-card strong {
    display: block;

    font-size: 26px;

    margin: 10px 0;
}

.metric-card small {
    color: #98a2b3;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 20px;

    margin-bottom: 20px;
}

.panel h3 {
    margin-top: 0;
}

.placeholder {
    height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #98a2b3;

    background: #f9fafb;

    border-radius: 8px;

    text-align: center;

    padding: 25px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-ok {
    width: 10px;
    height: 10px;

    background: #16a34a;

    border-radius: 50%;
}

.system-status strong {
    margin-left: auto;
}

@media(max-width: 1000px) {

    .cards {
        grid-template-columns:
            repeat(2, 1fr);
    }

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

}
