﻿/* ================================
   Top Menu (SaaS style)
   ================================ */

:root {
    --hc-topbar-h: 68px;
    --hc-surface: #ffffff;
    --hc-surface-2: rgba(15,23,42,.02);
}

/* Body background like SaaS */
body {
    background: linear-gradient(180deg, #f7f9ff 0%, #f6f7fb 45%, #f6f7fb 100%);
}

/* Topbar */
.hc-topbar {
    height: var(--hc-topbar-h);
    background: var(--hc-surface);
    border-bottom: 1px solid var(--hc-border);
    box-shadow: 0 10px 25px rgba(15,23,42,.06);
    position: sticky;
    top: 0;
    z-index: 1040;
}

    .hc-topbar .container-fluid {
        height: 100%;
    }

.hc-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hc-dark) !important;
    font-weight: 900;
    letter-spacing: .2px;
}

.hc-topbar-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,.12);
    color: var(--hc-primary);
    border: 1px solid rgba(37,99,235,.18);
    font-weight: 900;
}

.hc-topbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hc-toplink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 900;
    color: #334155;
    text-decoration: none;
    border: 1px solid transparent;
    transition: .15s ease;
}

    .hc-toplink:hover {
        background: rgba(37,99,235,.08);
        color: var(--hc-primary);
    }

    .hc-toplink.active {
        background: rgba(37,99,235,.12);
        color: var(--hc-primary);
        border-color: rgba(37,99,235,.18);
    }

.hc-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hc-select {
    min-width: 260px;
}

/* Page shell like screenshot */
.hc-shell {
    padding-top: 18px;
    padding-bottom: 28px;
}

.hc-page {
    background: transparent;
}

/* Page header (title + actions) */
.hc-pagehead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .hc-pagehead h1 {
        margin: 0;
        font-weight: 900;
        letter-spacing: .2px;
        font-size: 22px;
    }

    .hc-pagehead .hc-subtitle {
        margin-top: 4px;
        font-weight: 800;
        color: var(--hc-muted);
    }

/* Tabs row (Overview/Archive) */
.hc-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--hc-border);
    margin-bottom: 12px;
}

.hc-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px 14px 0 0;
    font-weight: 900;
    color: #334155;
    text-decoration: none;
    border: 1px solid transparent;
    margin-bottom: -1px;
}

    .hc-tab:hover {
        background: rgba(37,99,235,.06);
        color: var(--hc-primary);
    }

    .hc-tab.active {
        background: var(--hc-surface);
        color: var(--hc-primary);
        border-color: var(--hc-border);
        border-bottom-color: var(--hc-surface);
    }

/* Filter bar (chips/selects) */
.hc-filterbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    box-shadow: var(--hc-shadow-sm);
}

.hc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    font-weight: 900;
    color: #334155;
}

.hc-filterbar .form-select,
.hc-filterbar .form-control {
    min-width: 180px;
}

/* Content card */
.hc-panel {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    box-shadow: var(--hc-shadow);
}

    .hc-panel .hc-panel-h {
        padding: 14px 16px;
        border-bottom: 1px solid var(--hc-border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .hc-panel .hc-panel-b {
        padding: 16px;
    }

/* Responsive */
@media (max-width: 992px) {
    .hc-select {
        min-width: 100%;
    }

    .hc-pagehead {
        flex-direction: column;
        align-items: stretch;
    }

    .hc-topbar-actions {
        width: 100%;
    }
}
