body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #eef3f7;
    margin: 0;
    color: #101828;
}

* { box-sizing: border-box; }

.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 248px;
    background: linear-gradient(180deg, #252c35 0%, #202730 100%);
    color: #fff;
    transition: width 0.22s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.12);
}
.sidebar.collapsed { width: 80px; }
.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); min-height: 64px;
}
.sidebar-title { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.sidebar.collapsed .sidebar-title { display: none; }
.sidebar-toggle { background: transparent; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.sidebar-toggle:hover { background: rgba(255,255,255,0.08); }
.sidebar-menu { padding: 10px; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 12px; color: #eef4ff; text-decoration: none;
    padding: 13px 12px; border-radius: 10px; margin-bottom: 7px; font-size: 12px; font-weight: 700;
    border: 1px solid transparent;
}
.sidebar-menu a:hover, .sidebar-menu a.active { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.08); }
.sidebar-icon { min-width: 18px; text-align: center; font-size: 15px; }
.sidebar.collapsed .sidebar-text { display: none; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    background: #fff; border-bottom: 1px solid #d7dee8; padding: 14px 22px;
    display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 68px;
}
.topbar-left h1 { margin: 0 0 4px 0; font-size: 16px; font-weight: 800; color: #101828; }
.topbar-user { color: #667085; font-size: 12px; }
.topbar-user a { color: #101828; text-decoration: none; font-weight: 700; }
.content { padding: 22px; }
.home-shell { max-width: 1180px; margin: 0 auto; }
.hero-card, .quick-notes, .module-card, .module-meta-box {
    background: #fff; border: 1px solid #d8e0ea; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}
.hero-card { border-radius: 22px; padding: 18px; margin-bottom: 18px; }
.compact-hero { background: #303944; color: #fff; min-height: 72px; display: flex; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: #fff;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px; padding: 8px 12px; font-weight: 700;
}
.hero-dot { width: 7px; height: 7px; border-radius: 999px; background: #df1f2d; display: inline-block; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 12px; }
.section-title { margin: 0; font-size: 17px; color: #101828; font-weight: 800; }
.section-text { color: #667085; font-size: 12px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 14px; }
.module-card { border-radius: 16px; padding: 18px; text-decoration: none; color: inherit; display: block; transition: transform .16s ease, box-shadow .16s ease; }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10); }
.module-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.module-icon {
    width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; background: #fff1f2; color: #dc2626; border: 1px solid #fecdd3;
}
.module-badge {
    font-size: 10px; color: #344054; background: #f8fafc; border: 1px solid #d8e0ea;
    border-radius: 999px; padding: 7px 12px; white-space: nowrap; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.module-title { margin: 0 0 7px 0; font-size: 16px; font-weight: 800; color: #101828; }
.module-desc { margin: 0 0 14px 0; color: #475467; font-size: 12px; line-height: 1.55; min-height: 58px; }
.module-meta { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; }
.module-meta-box { border-radius: 14px; padding: 10px 11px; box-shadow: none; }
.module-meta-label { font-size: 10px; color: #667085; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.module-meta-value { font-size: 13px; font-weight: 800; color: #101828; word-break: break-word; line-height: 1.45; }
.module-footer { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #667085; }
.module-link { color: #d71920; font-weight: 800; }
.quick-notes { margin-top: 18px; border-radius: 16px; padding: 18px 20px; }
.quick-notes h3 { margin: 0 0 10px 0; font-size: 15px; font-weight: 800; color: #101828; }
.quick-notes p { margin: 0; color: #475467; font-size: 12px; line-height: 1.7; }
.footer { margin-top: auto; background: #fff; border-top: 1px solid #d7dee8; padding: 12px 24px; font-size: 11px; color: #667085; text-align: center; }

.login-body {
    background: linear-gradient(135deg, #eef3f7, #f8fafc);
    min-height: 100vh; display: flex; align-items: center; justify-content: center; margin: 0;
}
.login-wrapper { width: 100%; max-width: 460px; padding: 20px; }
.login-card {
    background: #fff; border-radius: 20px; padding: 28px; border: 1px solid #d8e0ea;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08); text-align: center;
}
.login-logo { max-width: 196px; width: 100%; height: auto; margin: 0 auto 18px auto; display: block; }
.login-title { margin: 0 0 8px 0; color: #101828; font-size: 20px; }
.login-subtitle { margin: 0 0 22px 0; color: #475467; font-size: 12px; }
.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-form label { display: block; font-size: 12px; color: #344054; margin-bottom: 6px; }
.login-form input {
    width: 100%; padding: 12px 13px; font-size: 13px; border: 1px solid #cfd8e3;
    border-radius: 10px; background: #fff; color: #101828;
}
.login-form input:focus { outline: none; border-color: #98a2b3; box-shadow: 0 0 0 3px rgba(152,162,179,.15); }
.login-form button {
    padding: 12px 14px; font-size: 13px; cursor: pointer; border: 1px solid #cfd8e3;
    border-radius: 10px; background: #fff; color: #101828; font-weight: 800;
}
.login-form button:hover { background: #f8fafc; }
.alert-error { margin-bottom: 16px; background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; border-radius: 10px; padding: 10px 12px; font-size: 12px; text-align: left; }

@media (max-width: 900px) {
    .sidebar { width: 80px; }
    .sidebar-title, .sidebar-text { display: none; }
    .content { padding: 16px; }
    .topbar { padding: 14px 16px; }
    .module-grid { grid-template-columns: 1fr; }
}
