
/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== VARIABEL WARNA ==================== */
:root {
    --primary: #4A90A4;
    --primary-dark: #3d7a8c;
    --secondary: #6BB3A8;
    --accent: #F4A261;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --purple: #9b59b6;
    --dark: #2c3e50;
    --dark-light: #34495e;
    --light: #ecf0f1;
    --white: #ffffff;
    --gray: #95a5a6;
    --gray-light: #bdc3c7;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

small, .small {
    font-size: 0.875rem;
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-purple { color: var(--purple) !important; }
.text-muted { color: var(--gray) !important; }
.text-white { color: var(--white) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-info { background-color: var(--info) !important; }
.bg-purple { background-color: var(--purple) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-white { background-color: var(--white) !important; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.4);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.5);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-success {
    background-color: var(--success);
    color: var(--white);
}
.btn-success:hover {
    background-color: #219a52;
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}
.btn-danger:hover {
    background-color: #c0392b;
    color: var(--white);
}

.btn-warning {
    background-color: var(--warning);
    color: var(--dark);
}
.btn-warning:hover {
    background-color: #e67e22;
    color: var(--dark);
}

.btn-info {
    background-color: var(--info);
    color: var(--white);
}
.btn-info:hover {
    background-color: #2980b9;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--gray);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: #7f8c8d;
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-outline-danger {
    border: 2px solid var(--danger);
    color: var(--danger);
    background: transparent;
}
.btn-outline-danger:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-outline-success {
    border: 2px solid var(--success);
    color: var(--success);
    background: transparent;
}
.btn-outline-success:hover {
    background: var(--success);
    color: var(--white);
}

.btn-outline-info {
    border: 2px solid var(--info);
    color: var(--info);
    background: transparent;
}
.btn-outline-info:hover {
    background: var(--info);
    color: var(--white);
}

.btn-outline-purple {
    border: 2px solid var(--purple);
    color: var(--purple);
    background: transparent;
}
.btn-outline-purple:hover {
    background: var(--purple);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--dark);
}
.btn-light:hover {
    background-color: var(--light);
    color: var(--dark);
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-footer {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge.bg-primary { background-color: var(--primary) !important; }
.badge.bg-success { background-color: var(--success) !important; }
.badge.bg-danger { background-color: var(--danger) !important; }
.badge.bg-warning { background-color: var(--warning) !important; color: var(--dark); }
.badge.bg-info { background-color: var(--info) !important; }
.badge.bg-secondary { background-color: var(--gray) !important; }
.badge.bg-purple { background-color: var(--purple) !important; }
.badge.bg-dark { background-color: var(--dark) !important; }
.badge.bg-light { background-color: var(--light) !important; color: var(--dark); }

/* ==================== TABLES ==================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: #f8f9fa;
}

.table thead th {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--dark);
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table-modern {
    font-size: 0.9rem;
}

.table-modern thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.table-modern thead th {
    color: var(--white);
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background: rgba(74, 144, 164, 0.05);
}

.table-hover tbody tr:hover {
    background: #f8f9fa !important;
}

.table-sm thead th,
.table-sm tbody td {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* ==================== FORMS ==================== */
.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-control,
.form-select {
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 2px solid #e0e0e0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-light);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    border: none;
    font-weight: 500;
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info);
    border-left: 4px solid var(--info);
}

.alert-dismissible {
    padding-right: 3rem;
}

/* ==================== MODALS ==================== */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.25rem 1.5rem;
}

.modal-header.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-bottom: none;
}

.modal-header.bg-gradient .modal-title {
    color: var(--white);
}

.modal-header.bg-gradient .btn-close,
.modal-header.bg-gradient .btn-close-white {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
}

/* ==================== NAVBAR (PUBLIK) ==================== */
.navbar-school {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-school .navbar-brand {
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-school .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-school .nav-link:hover,
.navbar-school .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.navbar-school .nav-link.btn {
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
}

.navbar-school .nav-link.btn:hover {
    background: var(--secondary);
}

.navbar-school.fixed-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ==================== HERO SECTION (PUBLIK) ==================== */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(74, 144, 164, 0.85)),
                url('../assets/images/bg.jpg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(74, 144, 164, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-illustration {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ==================== FOOTER (PUBLIK) ==================== */
.footer-school {
    background: linear-gradient(135deg, var(--dark) 0%, #1a252f 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-school h5,
.footer-school h6 {
    color: var(--white);
}

.footer-school a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer-school a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.text-accent {
    color: var(--secondary);
}

.social-links .btn-floating {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links .btn-floating:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ==================== GALLERY ==================== */
.gallery-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ==================== SIDEBAR (ADMIN) ==================== */
.sidebar {
    background: linear-gradient(180deg, var(--dark) 0%, #1a252f 100%);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    padding: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

.sidebar-brand span {
    color: var(--secondary);
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-nav .nav-header {
    padding: 10px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

.sidebar-nav .nav-item {
    margin: 2px 10px;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.3);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 15px 0;
}

/* Sidebar Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
}

/* ==================== MAIN CONTENT (ADMIN) ==================== */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f5f7fa;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .main-content {
        margin-left: 0;
    }
}

.content-wrapper {
    padding: 25px;
}

/* ==================== PROGRESS BAR ==================== */
.progress {
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 1s ease;
}

/* ==================== LIST GROUP ==================== */
.list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: #f8f9fa;
}

.list-group-item:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.list-group-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
    border-bottom: none;
}

/* ==================== TABS & PILLS ==================== */
.nav-tabs,
.nav-pills {
    border: none;
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
    border-radius: var(--radius);
    padding: 10px 20px;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover,
.nav-pills .nav-link:hover {
    color: var(--primary);
    background: rgba(74, 144, 164, 0.1);
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
    background: var(--primary);
    color: var(--white);
}

/* ==================== LOGIN CARD (AUTH) ==================== */
.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 40px 30px;
    text-align: center;
    color: var(--white);
}

.login-header i {
    background: rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-header h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.login-header p {
    opacity: 0.9;
    margin: 0;
}

/* ==================== ANIMATIONS ==================== */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== UTILITY CLASSES ==================== */
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important; }
.shadow { box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; }
.shadow-none { box-shadow: none !important; }

.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-circle { border-radius: 50% !important; }

.border { border: 1px solid #dee2e6 !important; }
.border-0 { border: none !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }

.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

/* ==================== SPACING ==================== */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

/* ==================== WIDTH & HEIGHT ==================== */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }

/* ==================== FLEX ==================== */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-grid { display: grid !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-end { justify-content: flex-end !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* ==================== TEXT ==================== */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-normal { font-weight: 400 !important; }

.fst-italic { font-style: italic !important; }

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.5rem !important; }
.fs-4 { font-size: 1.25rem !important; }
.fs-5 { font-size: 1.1rem !important; }
.fs-6 { font-size: 1rem !important; }

.lh-1 { line-height: 1 !important; }
.lh-sm { line-height: 1.25 !important; }
.lh-lg { line-height: 2 !important; }

/* ==================== POSITION ==================== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }

/* ==================== Z-INDEX ==================== */
.z-1 { z-index: 1 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-50 { z-index: 50 !important; }
.z-100 { z-index: 100 !important; }

/* ==================== OPACITY ==================== */
.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (min-width: 768px) {
    .d-md-flex { display: flex !important; }
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
    .text-md-center { text-align: center !important; }
}

@media (min-width: 992px) {
    .d-lg-flex { display: flex !important; }
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
    .d-lg-inline { display: inline !important; }
}

@media (min-width: 1200px) {
    .d-xl-flex { display: flex !important; }
    .d-xl-block { display: block !important; }
}

/* ==================== CURSOR ==================== */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* ==================== USER SELECT ==================== */
.user-select-none { user-select: none !important; }
.user-select-all { user-select: all !important; }

/* ==================== TRANSITION ==================== */
.transition-all { transition: all 0.3s ease !important; }

/* ==================== BORDER RADIUS ==================== */
.border-start {
    border-left: 4px solid var(--primary) !important;
}
.border-start-success {
    border-left: 4px solid var(--success) !important;
}
.border-start-danger {
    border-left: 4px solid var(--danger) !important;
}
.border-start-warning {
    border-left: 4px solid var(--warning) !important;
}
.border-start-info {
    border-left: 4px solid var(--info) !important;
}

.border-top {
    border-top: 4px solid var(--primary) !important;
}
.border-top-success {
    border-top: 4px solid var(--success) !important;
}
.border-top-danger {
    border-top: 4px solid var(--danger) !important;
}
.border-top-warning {
    border-top: 4px solid var(--warning) !important;
}
.border-top-info {
    border-top: 4px solid var(--info) !important;
}

/* ==================== TABLE RESPONSIVE ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==================== MENU CARD (PUBLIK) ==================== */
.menu-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
}

.menu-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== PENGUMUMAN CARD (PUBLIK) ==================== */
.pengumuman-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pengumuman-card:hover {
    transform: translateY(-5px);
}

/* ==================== CONTAINER FLUID FOR ADMIN ==================== */
.container-fluid-admin {
    padding: 25px;
    max-width: 100%;
}

/* ==================== STATS CARD ==================== */
.stats-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stats-card.success { border-left-color: var(--success); }
.stats-card.danger { border-left-color: var(--danger); }
.stats-card.warning { border-left-color: var(--warning); }
.stats-card.info { border-left-color: var(--info); }

/* ==================== LINK CARD (DASHBOARD) ==================== */
a.text-decoration-none:hover .card {
    transform: translateY(-5px);
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* Brand */
.sidebar-brand {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.sidebar-brand h4 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}
.sidebar-brand small {
    color: rgba(255,255,255,0.5);
}

/* Navigation - Scrollable */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

/* Custom Scrollbar */
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* Nav Header */
.sidebar-nav .nav-header {
    padding: 15px 20px 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

/* Nav Item */
.sidebar-nav .nav-item { margin: 2px 12px; }

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
}
.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #4A90A4, #6BB3A8);
    color: #fff;
}
.sidebar-nav .nav-link i { width: 20px; text-align: center; }
.sidebar-nav .nav-link .badge { font-size: 0.7rem; padding: 4px 8px; }

/* Divider */
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 10px 0;
}

/* Footer Logout */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.sidebar-footer .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.sidebar-footer .nav-link:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f5f7fa;
    transition: margin-left 0.3s ease;
}

.content-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.content-body {
    padding: 25px;
}

/* ==================== MOBILE TOGGLE BUTTON ==================== */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: linear-gradient(135deg, #4A90A4, #6BB3A8);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mobile-toggle:hover {
    background: linear-gradient(135deg, #3d7a8c, #55968f);
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}



/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .content-body {
        padding: 15px;
    }
    .content-header h4 {
        font-size: 1.1rem;
    }
}