@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/fontawesome.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

.custom-btn {
    border: 1px solid #aaa;
    padding: 2px 6px;
    border-radius: 5px;
    background-color: transparent;
    color: #aabbcc;
}

.custom-btn:hover {
    background-color: #eee;
    color: #445566;
}

.fc-event-title {
    cursor: pointer;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 10px;
}

/* Landing page hero */
.landing-hero {
    min-height: 80vh;
    background: url('../images/backdrop.jpg') top center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.landing-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}

/* ── Sidebar layout ─────────────────────────────────────────────────────── */

:root {
    --topbar-height: 56px;
    --sidebar-width: 240px;
    --sidebar-bg: #1a2535;
    --sidebar-hover: rgba(255, 255, 255, 0.07);
    --sidebar-active-bg: #0d6efd;
    --sidebar-text: rgba(255, 255, 255, 0.82);
    --sidebar-section-color: rgba(255, 255, 255, 0.38);
}

body {
    padding-top: var(--topbar-height);
}

/* Topbar */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background-color: #0d6efd;
    z-index: 1040;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
#sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 1035;
}

body.sidebar-open #sidebar {
    transform: translateX(0);
}

#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

/* Sidebar nav links */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 18px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-link.active {
    background: var(--sidebar-active-bg);
    color: #fff;
    border-left-color: rgba(255, 255, 255, 0.55);
}

.sidebar-link i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* Section grouping headers */
.sidebar-section-header {
    padding: 14px 18px 3px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--sidebar-section-color);
    pointer-events: none;
}

/* Main content wrapper */
.main-wrapper {
    min-height: calc(100vh - var(--topbar-height));
    transition: margin-left 0.22s ease;
}

/* On desktop, shift content when sidebar is open */
@media (min-width: 992px) {
    body.sidebar-open .main-wrapper {
        margin-left: var(--sidebar-width);
    }
}

/* Sidebar overlay (mobile only) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1030;
}

body.sidebar-open .sidebar-overlay {
    display: block;
}

@media (min-width: 992px) {
    body.sidebar-open .sidebar-overlay {
        display: none;
    }
}

/* Footer */
.main-footer {
    margin-block: 24pt;
    color: #aaa;
    font-size: 10pt;
    text-align: center;
}
