/* =========================================================
   DESIGN SYSTEM
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* COLORS */
    --color-primary: #045edb;
    --color-secondary: #ecfa47;
    --color-bg: #f8fbff;
    --color-white: #ffffff;
    --color-dark: #1a1a1a;
    --color-muted: #6c757d;

    /* GRADIENT */
    --gradient-primary: linear-gradient(135deg, #008cff, #fffb0061);

    /* SPACING */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;

    /* RADIUS */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* SHADOW */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);

    /* TRANSITION */
    --transition: all 0.3s ease;
}

/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--color-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--color-dark);
}

section {
    width: 100%;
    padding: var(--space-xl) 0;
}

.container-custom {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 var(--space-md);
}

/* =========================================================
   TYPOGRAPHY SYSTEM
========================================================= */

.title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.subsubtitle {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--color-muted);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-muted);
}

/* =========================================================
   BUTTON SYSTEM
========================================================= */

.btn-custom {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary-custom {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
    background: var(--color-secondary);
    color: var(--color-dark);
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* =========================================================
   CARD SYSTEM
========================================================= */

.card-custom {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* ICON BOX */
.icon-box {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 22px;
}

/* =========================================================
   SIDEBAR LAYOUT
========================================================= */

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--gradient-primary);
    position: fixed;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-brand {
    padding: var(--space-lg);
    font-weight: 700;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin: var(--space-sm) var(--space-md);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-dark);
    transition: var(--transition);
}

.menu-link:hover,
.menu-link.active {
    background: rgba(255, 255, 255, 0.3);
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    margin-left: 260px;
    padding: var(--space-lg);
    transition: var(--transition);
}

.topbar {
    background: rgba(0, 0, 0, 0.03);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

/* =========================================================
   UTILITIES
========================================================= */

.space-top {
    margin-top: var(--space-xl);
}

.wrap-text {
    word-break: break-word;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
    }

    .sidebar {
        margin-left: -260px;
        /* z-index: 1050; */
    }

    .sidebar.show {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .btn-custom {
        width: 100%;
        text-align: center;
    }

    .card-custom {
        padding: var(--space-md);
    }
}

/* Staff card text truncation */
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: 2.8em;
    word-break: break-word;
}

/* Staff card height consistency */
.staff-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.staff-card .list-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.staff-card .list-group-item.staff-name,
.staff-card .list-group-item.staff-role {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}