/* ===============================
   BASE
================================ */
body {
    background: #f6f7fb;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Ubuntu, sans-serif;
}

.content {
    margin: 0 auto;
}

.muted {
    color: #6b7280;
    font-size: 14px;
}

.metric {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
}

.positive {
    color: #16a34a;
}

.negative {
    color: #dc2626;
}


/* ===============================
   LAYOUT
================================ */
.main-content {
    margin-left: 240px; /* sidebar width */
    min-height: 100vh;
    background: #f6f7fb;
}

.content {
    padding: 24px;
}


/* ===============================
   SIDEBAR
================================ */
.sidebar {
    width: 240px;
    background: #0f172a;
    color: #e5e7eb;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 16px;
}

.sidebar-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
    color: #c7d2fe;
    text-decoration: none;
    font-weight: 500;
}

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


/* ===============================
   TOPBAR
================================ */
.topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

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


/* ===============================
   CARDS
================================ */
.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.card h6 {
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}


/* ===============================
   SOFT BACKGROUND VARIANTS
================================ */
.bg-soft-blue {
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.bg-soft-green {
    background: linear-gradient(180deg, #f6fffa, #ffffff);
}

.bg-soft-yellow {
    background: linear-gradient(180deg, #fffdf5, #ffffff);
}

.bg-soft-purple {
    background: linear-gradient(180deg, #faf8ff, #ffffff);
}

.bg-soft-gray {
    background: #fafafa;
}


/* ===============================
   TABLE
================================ */
.table thead th {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

.login-card {
    max-width: 950px;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.15);
    overflow: hidden;
}

.login-left {
    background: linear-gradient(180deg, #fff7f0, #fdf1e8);
    padding: 48px;
}

.login-left h3 {
    font-weight: 700;
}

.login-left p {
    color: #6b7280;
}

.login-left img {
    width: 100%;
    border-radius: 14px;
    margin-top: 24px;
}

.login-right {
    padding: 48px;
}

.brand {
    font-weight: 700;
    letter-spacing: 1px;
    color: #c29b6d;
}

.form-control {
    border-radius: 10px;
    padding: 12px 14px;
}

.login-btn {
    border-radius: 30px;
    padding: 12px;
    font-weight: 600;
    background: linear-gradient(90deg, #ff8a4c, #ff6b3d);
    border: none;
}

.login-btn:hover {
    opacity: 0.95;
}

.small-link {
    font-size: 14px;
    text-decoration: none;
    color: #ff7a45;
}

@media (max-width: 768px) {
    .login-left {
        display: none;
    }
}