/* UFO - Comprehensive CSS for all pages and roles */

:root {
    --primary: #5f3a74;
    --accent: #ffcc00;
    --danger: #cc0000;
    --success: #00aa00;
    --warning: #ffa500;
    --text-primary: #111;
    --text-secondary: #666;
    --bg-light: #f7f7fb;
    --border-color: #e6e6f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}
.container {
    max-width: 1000px;
    margin: 1rem auto;
    padding: 0 1rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.burger-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.burger-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    font-size: 28px;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.notification-btn:hover {
    background: rgba(255,255,255,0.1);
}

.notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #FF4444;
    border-radius: 50%;
}

/* ===== BURGER MENU / OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 95;
    transition: opacity 0.3s;
}

.overlay.hidden {
    display: none;
}

.burger-menu {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--accent);
    color: var(--text-primary);
    z-index: 96;
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    padding: 0;
}

.burger-menu[aria-hidden="false"] {
    transform: translateX(0);
}

.pengurus-burger {
    background: linear-gradient(135deg, var(--accent) 0%, #FFB800 100%);
}

.admin-burger {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5C8A 100%);
    color: white;
}

.admin-burger a {
    color: white;
}

.kemahasiswaan-burger {
    background: linear-gradient(135deg, #50C878 0%, #2D9966 100%);
    color: white;
}

.kemahasiswaan-burger a {
    color: white;
}

.burger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.burger-title {
    font-size: 18px;
    font-weight: 700;
}

.burger-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.burger-close:hover {
    background: rgba(0,0,0,0.1);
}

.burger-nav {
    padding: 0;
}

.burger-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.burger-nav li {
    margin: 0;
}

.burger-nav a {
    display: block;
    padding: 12px 16px;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    border-left: 4px solid transparent;
}

.burger-nav a:hover {
    background: rgba(0,0,0,0.08);
    border-left-color: var(--primary);
}

.burger-divider {
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 8px 0;
}

/* ===== BURGER MAHASISWA (YELLOW & PURPLE) ===== */
.burger-mahasiswa {
    background: #FFCC00;
    color: #111;
}

.burger-mahasiswa .burger-header {
    padding: 20px;
    border-bottom: none;
}

.burger-mahasiswa .burger-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.burger-mahasiswa .burger-icon {
    font-size: 28px;
}

.burger-mahasiswa .burger-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
}

.burger-mahasiswa .burger-close {
    font-size: 28px;
    color: #111;
    font-weight: bold;
}

.burger-mahasiswa .burger-close:hover {
    background: rgba(0,0,0,0.08);
}

.burger-mahasiswa .burger-nav {
    padding: 12px;
}

.burger-mahasiswa .burger-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: transparent;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.burger-mahasiswa .burger-link:hover {
    background: rgba(102, 51, 153, 0.1);
    transform: translateX(4px);
}

.burger-mahasiswa .burger-link-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    width: 32px;
    height: 32px;
}

.burger-mahasiswa .burger-link-text {
    font-size: 16px;
}

/* Active state for Organisasi */
.burger-mahasiswa .organisasi-link {
    background: #663399;
    color: white;
    border-radius: 16px;
}

.burger-mahasiswa .organisasi-link:hover {
    background: #5a2d7f;
    transform: translateX(0);
}

/* ===== SIDEBAR / PORTAL ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--primary);
    color: white;
    z-index: 96;
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    padding: 0;
}

.sidebar[aria-hidden="false"] {
    transform: translateX(0);
}

.pengurus-sidebar {
    background: linear-gradient(135deg, var(--primary) 0%, #5a2d7f 100%);
}

.admin-sidebar {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5C8A 100%);
}

.kemahasiswaan-sidebar {
    background: linear-gradient(135deg, #50C878 0%, #2D9966 100%);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 95;
    transition: opacity 0.3s;
}

.sidebar-overlay.hidden {
    display: none;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.sidebar-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
    color: white;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.1);
}

.sidebar-nav {
    padding: 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--accent);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 8px 0;
}

/* ===== STUDENT BURGER MENU (MAHASISWA) ===== */
/**
 * Styling untuk StudentBurgerMenu component
 * Sidebar dengan design kuning (#ffcc00) dan ungu gelap (#663399)
 * Slide-in dari kiri dengan overlay dimmed
 */

/* Overlay - gelap di belakang sidebar */
.student-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 95;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Main burger menu container */
.student-burger-menu {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffb800 100%);
    color: var(--text-primary);
    z-index: 96;
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

/* State: Open */
.student-burger-menu.student-burger-menu--open {
    transform: translateX(0);
}

/* Header dengan icon, title, close button */
.student-burger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 2px solid rgba(102, 51, 153, 0.2);
    background: rgba(102, 51, 153, 0.08);
    flex-shrink: 0;
}

.student-burger-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-burger-icon {
    font-size: 28px;
    display: inline-block;
}

.student-burger-title {
    font-size: 18px;
    font-weight: 700;
    color: #663399;
}

/* Close button */
.student-burger-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
    color: #663399;
    font-weight: bold;
}

.student-burger-close:hover {
    background: rgba(102, 51, 153, 0.15);
    color: #663399;
}

.student-burger-close:active {
    background: rgba(102, 51, 153, 0.25);
}

/* Navigation container */
.student-burger-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

/* Menu list */
.student-burger-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menu item */
.student-burger-item {
    margin: 0;
}

/* Menu link styling */
.student-burger-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.student-burger-link:hover {
    background: rgba(102, 51, 153, 0.1);
    border-left-color: #663399;
    padding-left: 18px;
}

/* Active link state - ungu gelap background dengan teks putih */
.student-burger-link--active {
    background: #663399;
    color: white;
    border-left-color: white;
}

.student-burger-link--active .student-burger-icon-item {
    filter: brightness(1.2);
}

.student-burger-link:active {
    background: rgba(102, 51, 153, 0.15);
}

/* Icon dalam menu link */
.student-burger-icon-item {
    font-size: 20px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Divider (optional) */
.student-burger-divider {
    height: 1px;
    background: rgba(102, 51, 153, 0.15);
    margin: 8px 0;
}

/* Footer - Versi dan nama aplikasi */
.student-burger-footer {
    padding: 16px;
    border-top: 2px solid rgba(102, 51, 153, 0.2);
    background: rgba(102, 51, 153, 0.08);
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.student-burger-footer-title {
    font-size: 12px;
    font-weight: 700;
    color: #663399;
    margin: 0;
    line-height: 1.4;
}

.student-burger-footer-version {
    font-size: 11px;
    color: #663399;
    margin-top: 4px;
    opacity: 0.8;
}

/* Scrollbar styling */
.student-burger-menu::-webkit-scrollbar {
    width: 6px;
}

.student-burger-menu::-webkit-scrollbar-track {
    background: rgba(102, 51, 153, 0.05);
}

.student-burger-menu::-webkit-scrollbar-thumb {
    background: rgba(102, 51, 153, 0.3);
    border-radius: 3px;
}

.student-burger-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 51, 153, 0.5);
}

/* ===== MAHASISWA LAYOUT ===== */
/**
 * Styling untuk MahasiswaLayout component
 * Layout dengan burger menu untuk halaman publik/portal mahasiswa
 */

.mahasiswa-layout {
    position: relative;
    min-height: 100vh;
    background: var(--bg-light);
}

.mahasiswa-layout-content {
    padding-top: 56px;
    min-height: 100vh;
    background: var(--bg-light);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: 64px;
    min-height: 100vh;
}

/* ===== LOGIN PAGE ===== */
/**
 * Portal Login Page Styling
 * Modern, clean design dengan ungu + white scheme
 */

/* Main wrapper dengan background ungu */
.portal-login-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, #5a2d7f 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header section dengan icon user */
.portal-login-header {
    background: rgba(102, 51, 153, 0.95);
    padding: 28px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-login-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.portal-login-header-icon {
    font-size: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffb800 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.portal-login-header-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.portal-login-header-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

/* Login container - center dengan card */
.portal-login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 48px;
}

/* White card dengan shadow dan rounded */
.portal-login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card header */
.portal-login-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.portal-login-card-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.portal-login-card-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Small note for internal-only portal */
.portal-login-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}
/* Login form */
.portal-login-form {
    margin-bottom: 24px;
}

/* Form group */
.portal-form-group {
    margin-bottom: 20px;
}

.portal-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Input wrapper dengan icon */
.portal-form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.portal-form-icon {
    position: absolute;
    left: 12px;
    font-size: 18px;
    pointer-events: none;
}

.portal-form-input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.portal-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 51, 153, 0.1);
}

.portal-form-input::placeholder {
    color: var(--text-secondary);
}

/* Select styling */
.portal-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23663399' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Login button */
.portal-login-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #5a2d7f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 51, 153, 0.2);
    margin-top: 8px;
}

.portal-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 51, 153, 0.3);
    background: linear-gradient(135deg, #5a2d7f 0%, #4a1f6b 100%);
}

.portal-login-btn:active {
    transform: translateY(0);
}

/* Card footer */
.portal-login-card-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.portal-login-footer-text {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.portal-login-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.portal-login-link:hover {
    color: #5a2d7f;
    text-decoration: underline;
}

/* Page footer info */
.portal-login-page-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.portal-login-footer-main {
    margin: 0 0 6px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.portal-login-footer-sub {
    margin: 0;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 640px) {
    .portal-login-header-content {
        flex-direction: column;
        gap: 12px;
    }

    .portal-login-header-icon {
        width: 56px;
        height: 56px;
        font-size: 32px;
    }

    .portal-login-header-title {
        font-size: 20px;
    }

    .portal-login-card {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .portal-login-card-title {
        font-size: 24px;
    }

    .portal-form-group {
        margin-bottom: 18px;
    }

    .portal-login-container {
        padding: 24px 16px 40px;
    }
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}

.btn-full {
    width: 100%;
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #5a2d7f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #ddd;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #008000;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #AA0000;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===== PAGE HEADERS ===== */
.page-header {
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #5a2d7f 100%);
    color: white;
    margin-bottom: 16px;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
}

.page-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* ===== DASHBOARD STATS CARDS ===== */
.content-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px 92px 18px 20px; /* reserve right space for icon to avoid overlap */
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    min-height: 110px;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.2;
}
.stat-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-top: 6px; /* give a small gap under the label */
}
.stat-icon {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 22px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
/* Accent variant for the 3rd card to match provided design */
.stats-row .stat-card:nth-child(3) .stat-icon {
    background: var(--accent);
    color: #2b2b2b;
}

@media (max-width: 840px) {
    .stat-card {
        padding: 14px 72px 14px 16px;
    }
    .stat-value {
        font-size: 34px;
    }
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 12px 56px 12px 12px;
    }
    .stat-value {
        font-size: 28px;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 12px;
    }
}

/* ===== MAHASISWA PAGES ===== */
.mahasiswa-dashboard,
.mahasiswa-organisasi,
.mahasiswa-event {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 24px;
    margin: 0 0 20px;
    color: var(--primary);
}

/* Cards grid */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.org-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.org-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.org-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.org-card h3 {
    margin: 0;
    padding: 16px 16px 8px;
    font-size: 18px;
}

.org-card p {
    margin: 0;
    padding: 0 16px 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.org-card .btn {
    margin: 8px 16px 16px;
    width: calc(100% - 32px);
}

/* Organization list */
.org-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.org-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    gap: 20px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.org-item:hover {
    box-shadow: var(--shadow-md);
}

.org-item-image {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    flex-shrink: 0;
}

.org-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.org-item-content h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.org-category {
    display: inline-block;
    background: var(--accent);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 8px;
    width: fit-content;
}

.org-desc {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.org-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.filter-section {
    margin-bottom: 24px;
}

.filter-input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    min-width: 200px;
}

/* Event list */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
    border-left: 4px solid var(--primary);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
}

.event-date {
    width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.event-content h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.event-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Event detail grid */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.event-detail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-detail-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.event-detail-content {
    padding: 20px;
}

.event-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}

.event-detail-content h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.event-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== PORTAL DASHBOARDS ===== */
.portal-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* Activity list */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.activity-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
}

.activity-content h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.activity-content p {
    margin: 0;
}

.activity-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== HEADER BAR (MAHASISWA) ===== */
/**
 * HeaderBar Component Styling
 * Header untuk halaman publik mahasiswa dengan burger menu
 */

.mahasiswa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, #5a2d7f 100%);
    color: white;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mahasiswa-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mahasiswa-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mahasiswa-header-burger {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mahasiswa-header-burger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mahasiswa-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mahasiswa-brand-icon {
    font-size: 28px;
}

.mahasiswa-brand-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.mahasiswa-brand-subtitle {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1;
}

.mahasiswa-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mahasiswa-notification-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mahasiswa-notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #cc0000;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
    .mahasiswa-header {
        height: 52px;
    }

    .mahasiswa-header-burger {
        padding: 6px;
        font-size: 22px;
    }

    .mahasiswa-brand-icon {
        font-size: 24px;
    }

    .mahasiswa-brand-title {
        font-size: 14px;
    }

    .mahasiswa-brand-subtitle {
        display: none;
    }
}

/* Approval list */
.approval-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.approval-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.approval-item h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.approval-desc {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.approval-actions {
    display: flex;
    gap: 8px;
}

.approval-actions .btn {
    flex: 1;
}

/* Monitoring list */
.monitoring-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.monitoring-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.monitoring-item:last-child {
    border-bottom: none;
}

.org-name {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
}

.monitoring-content {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-active {
    background: #E8F5E9;
    color: var(--success);
}

.badge-warning {
    background: #FFF3E0;
    color: var(--warning);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 12px;
    }

    .brand-subtitle {
        display: none;
    }

    .page-header {
        padding: 20px 12px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .mahasiswa-dashboard,
    .mahasiswa-organisasi,
    .mahasiswa-event,
    .portal-dashboard {
        padding: 0 12px 32px;
    }

    .org-grid {
        grid-template-columns: 1fr;
    }

    .org-item {
        flex-direction: column;
    }

    .org-item-image {
        width: 100%;
        height: 200px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .approval-actions {
        flex-direction: column;
    }

    .approval-actions .btn {
        width: 100%;
    }

    .monitoring-content {
        flex-direction: column;
        gap: 6px;
    }
}

/* Text utilities */
.text-muted {
    color: var(--text-secondary);
    font-size: 14px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}
    font-size: 2rem;
}
.org-name {
    margin: 0;
    font-size: 1.05rem;
}
.org-tagline {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}
.view-btn {
    align-self: flex-start;
}

@media (max-width: 600px) {
    .mh-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== KEMAHASISWAAN - PENGUMUMAN ===== */
.pengumuman-page .page-title {
    color: #1565c0;
}

.pengumuman-page .stat-card {
    border-radius: 1rem;
    background: #f8f9fa;
}

.pengumuman-page .stat-total h2 {
    color: #1565c0;
}

.pengumuman-page .stat-published h2 {
    color: #2e7d32;
}

.pengumuman-page .stat-scheduled h2 {
    color: #1976d2;
}

.pengumuman-page .stat-draft h2 {
    color: #757575;
}

.pengumuman-page .btn-create-announcement {
    background: #1565c0;
    border-color: #1565c0;
    border-radius: 0.8rem;
    font-weight: 700;
}

.pengumuman-page .btn-create-announcement:hover {
    background: #0d47a1;
    border-color: #0d47a1;
}

.pengumuman-page .email-distribution-alert {
    background: #e3f2fd;
    border-radius: 1rem;
    color: #1f2937;
}

.pengumuman-page #tablePengumuman thead {
    background: #f8f9fa;
}

.pengumuman-page #tablePengumuman th {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.pengumuman-page #tablePengumuman tbody tr {
    transition: background-color 0.2s ease;
}

.pengumuman-page #tablePengumuman tbody tr:hover {
    background-color: #f5f8ff;
}

.pengumuman-page .announcement-title {
    color: #1565c0;
    text-decoration: none;
    font-weight: 600;
}

.pengumuman-page .announcement-title:hover {
    color: #0d47a1;
}

.pengumuman-page .action-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.87rem;
}

.pengumuman-page .action-view {
    color: #1565c0;
}

.pengumuman-page .action-edit {
    color: #4b5563;
}

.pengumuman-page .action-delete {
    color: #dc2626;
}

.pengumuman-page .status-published {
    background: #c8e6c9;
    color: #1b5e20;
}

.pengumuman-page .status-scheduled {
    background: #bbdefb;
    color: #0d47a1;
}

.pengumuman-page .status-draft {
    background: #e5e7eb;
    color: #374151;
}

/* ===== SHARED ROLE LAYOUT ===== */
.role-layout {
    display: flex;
}

.role-layout .role-main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 30px;
}

.role-layout .kemahasiswaan-sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1020;
}

@media (max-width: 768px) {
    .pengumuman-page .page-title {
        font-size: 1.75rem;
    }

    .pengumuman-page .stat-card {
        margin-bottom: 0.25rem;
    }

    .pengumuman-page #tablePengumuman {
        font-size: 0.9rem;
    }

    .role-layout {
        display: block;
    }

    .role-layout .kemahasiswaan-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .role-layout .role-main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px 12px;
    }
}
