﻿/* =========================================================
   GLOBAL
========================================================= */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f3f5f7;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =========================================================
   SIDEBAR
========================================================= */
.sidebar {
    width: 260px;
    background: #0b1d2a;
    color: #ffffff;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand-logo {
    width: 42px;
    margin-right: 12px;
}

.brand-title {
    font-weight: 700;
    font-size: 15px;
}

.brand-sub {
    font-size: 12px;
    opacity: 0.85;
}

/* Navigation */
.nav-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

    .nav-list li {
        padding: 6px 18px;
    }

        .nav-list li a {
            color: #d9e2ef;
            text-decoration: none;
            display: flex;
            align-items: center;
            padding: 10px 12px;
            border-radius: 8px;
            transition: background 0.2s ease;
        }

            .nav-list li a:hover,
            .nav-list li a.active {
                background: rgba(255,255,255,0.12);
            }

.nav-heading {
    font-size: 11px;
    color: #9fb3c8;
    margin: 16px 18px 6px;
    text-transform: uppercase;
}

.nav-icon {
    width: 18px;
    margin-right: 10px;
}

/* =========================================================
   MAIN CONTENT
========================================================= */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   PAGE HEADER (SINGLE SOURCE OF TRUTH)
========================================================= */
.page-header {
    background: #f8f9fa;
    padding: 20px;
    border-left: 5px solid #0d6efd;
    margin-bottom: 30px;
}

    .page-header h2 {
        margin: 0;
        font-weight: 700;
        color: #0a2540;
    }

    .page-header p {
        margin-top: 6px;
        color: #6b7c93;
        font-size: 14px;
    }

/* =========================================================
   INFO CARDS
========================================================= */
.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    position: relative;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #0a2540;
    margin-bottom: 12px;
}

    .info-card-header img {
        width: 22px;
    }

/* =========================================================
   INFO LIST (UNIFIED)
========================================================= */
.info-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 40px;
}

    .info-list > li {
        padding: 8px 0 8px 18px;
        position: relative;
        font-size: 14px;
        color: #344563;
        line-height: 1.6;
    }

        .info-list > li + li {
            border-top: 1px dashed #d9d9d9;
        }

    .info-list li::before {
        content: "›";
        position: absolute;
        left: 0;
        color: #1e8e6e;
        font-weight: bold;
    }

    .info-list li a {
        color: #222;
        text-decoration: none;
    }

        .info-list li a:hover {
            color: #0d6efd;
            text-decoration: underline;
        }

.file-meta {
    color: #777;
    font-size: 12px;
    margin-left: 6px;
}

/* =========================================================
   INFO FOOTER LINK
========================================================= */
.info-footer {
    position: absolute;
    bottom: 16px;
    right: 18px;
}

    .info-footer a {
        font-size: 13px;
        text-decoration: none;
        color: #1e8e6e;
        font-weight: 600;
    }

/* =========================================================
   COMPLIANCE CALENDAR
========================================================= */
.calendar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e6ebf1;
}

    .calendar-item:last-child {
        border-bottom: none;
    }

.date-badge {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .date-badge span {
        font-size: 16px;
    }

    .date-badge small {
        font-size: 11px;
        opacity: 0.9;
    }

    .date-badge.green {
        background: #1e8e6e;
    }

    .date-badge.blue {
        background: #2f80ed;
    }

    .date-badge.amber {
        background: #f2c94c;
        color: #000;
    }

.calendar-text strong {
    font-size: 14px;
    color: #0a2540;
}

.calendar-text span {
    font-size: 12px;
    color: #6b7c93;
}

/* =========================================================
   PORTAL CARDS
========================================================= */
.portal-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: #0a2540;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

    .portal-card img {
        width: 42px;
    }

    .portal-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

    .portal-card.green {
        border-left: 5px solid #2ecc71;
    }

    .portal-card.blue {
        border-left: 5px solid #3498db;
    }

    .portal-card.amber {
        border-left: 5px solid #f1c40f;
    }

/* =========================================================
   QUICK PANEL
========================================================= */
.quick-btn {
    position: fixed;
    right: 20px;
    top: 45%;
    background: #1e8e6e;
    color: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1000;
}

.quick-panel {
    position: fixed;
    right: -260px;
    top: 30%;
    width: 240px;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
}

    .quick-panel.show {
        right: 20px;
    }

    .quick-panel a {
        display: block;
        padding: 8px;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #eee;
    }

    .quick-panel .whatsapp {
        color: #128c7e;
        font-weight: 600;
    }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    background: #0b1d2a;
    color: #cfd8e3;
    padding: 40px 30px;
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

    .site-footer a {
        color: #9fd3ff;
        text-decoration: none;
    }

        .site-footer a:hover {
            text-decoration: underline;
        }

    .site-footer .copyright {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 20px;
        font-size: 13px;
        color: #aab4c3;
    }

.main-content footer {
    margin-top: auto;
}
