/**
 * CSS Sentral - Menggabungkan Tailwind CSS dan Bootstrap Utilities
 * File ini menyediakan sistem styling terpadu yang menggabungkan
 * utilities dari Tailwind CSS dan Bootstrap untuk konsistensi
 */

/* ============================================
   TAILWIND CSS UTILITIES (via CDN compatible)
   ============================================ */

/* Spacing Utilities - Kompatibel dengan Tailwind */
.spacing-xs { margin: 0.25rem; padding: 0.25rem; }
.spacing-sm { margin: 0.5rem; padding: 0.5rem; }
.spacing-md { margin: 1rem; padding: 1rem; }
.spacing-lg { margin: 1.5rem; padding: 1.5rem; }
.spacing-xl { margin: 2rem; padding: 2rem; }

/* Margin Utilities */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-0 { margin-top: 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; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* Padding Utilities */
.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; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* ============================================
   BOOTSTRAP COMPATIBILITY LAYER
   ============================================ */

/* Container - Kompatibel dengan Bootstrap dan Tailwind */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

.container-fluid {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Row dan Column System - Kompatibel Bootstrap */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }

.col-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 auto; width: 8.33333333%; }
    .col-sm-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-sm-3 { flex: 0 0 auto; width: 25%; }
    .col-sm-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-sm-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
    .col-sm-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-sm-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-sm-9 { flex: 0 0 auto; width: 75%; }
    .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 auto; width: 8.33333333%; }
    .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 auto; width: 8.33333333%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Card Component - Kompatibel Bootstrap dan Tailwind */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #ffffff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.card-header {
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: calc(0.5rem - 1px) calc(0.5rem - 1px) 0 0;
    font-weight: 600;
}

.card-footer {
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0 0 calc(0.5rem - 1px) calc(0.5rem - 1px);
}

.card-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-text:last-child {
    margin-bottom: 0;
}

/* Button Components - Kompatibel Bootstrap */
.btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    color: #fff;
    background-color: #6b7280;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

.btn-success {
    color: #fff;
    background-color: #10b981;
    border-color: #10b981;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-danger {
    color: #fff;
    background-color: #ef4444;
    border-color: #ef4444;
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-warning {
    color: #000;
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.btn-info {
    color: #fff;
    background-color: #06b6d4;
    border-color: #06b6d4;
}

.btn-info:hover {
    background-color: #0891b2;
    border-color: #0891b2;
}

.btn-light {
    color: #000;
    background-color: #f9fafb;
    border-color: #f9fafb;
}

.btn-dark {
    color: #fff;
    background-color: #1f2937;
    border-color: #1f2937;
}

.btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Form Components - Kompatibel Bootstrap */
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: none;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: inline-block;
}

/* Badge Components - Kompatibel Bootstrap */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge-primary { background-color: #3b82f6; }
.badge-secondary { background-color: #6b7280; }
.badge-success { background-color: #10b981; }
.badge-danger { background-color: #ef4444; }
.badge-warning { background-color: #f59e0b; color: #000; }
.badge-info { background-color: #06b6d4; }
.badge-light { background-color: #f9fafb; color: #000; }
.badge-dark { background-color: #1f2937; }

/* Alert Components - Kompatibel Bootstrap */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-primary {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
}

.alert-secondary {
    color: #41464b;
    background-color: #e2e3e5;
    border-color: #d3d6da;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* Utility Classes - Kompatibel Bootstrap */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: 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; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }
.text-justify { text-align: justify !important; }

.text-primary { color: #3b82f6 !important; }
.text-secondary { color: #6b7280 !important; }
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-info { color: #06b6d4 !important; }
.text-light { color: #f9fafb !important; }
.text-dark { color: #1f2937 !important; }
.text-white { color: #fff !important; }
.text-muted { color: #6b7280 !important; }

.bg-primary { background-color: #3b82f6 !important; }
.bg-secondary { background-color: #6b7280 !important; }
.bg-success { background-color: #10b981 !important; }
.bg-danger { background-color: #ef4444 !important; }
.bg-warning { background-color: #f59e0b !important; }
.bg-info { background-color: #06b6d4 !important; }
.bg-light { background-color: #f9fafb !important; }
.bg-dark { background-color: #1f2937 !important; }
.bg-white { background-color: #fff !important; }

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

.border { border: 1px solid rgba(0, 0, 0, 0.125) !important; }
.border-top { border-top: 1px solid rgba(0, 0, 0, 0.125) !important; }
.border-bottom { border-bottom: 1px solid rgba(0, 0, 0, 0.125) !important; }
.border-left { border-left: 1px solid rgba(0, 0, 0, 0.125) !important; }
.border-right { border-right: 1px solid rgba(0, 0, 0, 0.125) !important; }
.border-0 { border: 0 !important; }

.rounded { border-radius: 0.375rem !important; }
.rounded-top { border-top-left-radius: 0.375rem !important; border-top-right-radius: 0.375rem !important; }
.rounded-bottom { border-bottom-left-radius: 0.375rem !important; border-bottom-right-radius: 0.375rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06) !important; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important; }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05) !important; }
.shadow-none { box-shadow: none !important; }

.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Responsive Utilities */
@media (max-width: 575.98px) {
    .d-sm-none { display: none !important; }
    .d-sm-inline { display: inline !important; }
    .d-sm-inline-block { display: inline-block !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-inline { display: inline !important; }
    .d-sm-inline-block { display: inline-block !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-inline { display: inline !important; }
    .d-xl-inline-block { display: inline-block !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
}

/* ============================================
   HYBRID UTILITIES (Tailwind + Bootstrap)
   ============================================ */

/* Flexbox Hybrid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Gap Utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

/* Width/Height Utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Text Utilities */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Font Weight Utilities - Bootstrap compatible */
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-bolder { font-weight: 800 !important; }

/* Transition Utilities */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover Utilities */
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05); }
.hover\:opacity-75:hover { opacity: 0.75; }
.hover\:bg-opacity-80:hover { --bg-opacity: 0.8; }

/* Pagination Components - Kompatibel Bootstrap */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pagination .page-item {
    margin: 0;
    display: inline-block;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    margin: 0;
    color: #3b82f6;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 1.5;
}

.pagination .page-link:hover {
    color: #2563eb;
    background-color: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    z-index: 1;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #3b82f6;
    border-color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
}

/* ============================================
   ATTENDANCE MANAGEMENT PAGE STYLES
   ============================================ */

/* Attendance Toggle Button (Moon Icon) - Bundar */
.btn-attendance-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-attendance-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-attendance-toggle:active {
    transform: scale(0.95);
}

.btn-attendance-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Tidak Hadir - Warna Merah */
.btn-absent {
    background-color: #dc3545;
    color: white;
}

.btn-absent:hover {
    background-color: #c82333;
    color: white;
}

/* Hadir - Warna Hijau */
.btn-present {
    background-color: #28a745;
    color: white;
}

.btn-present:hover {
    background-color: #218838;
    color: white;
}

/* Toggle Button Mandiri - Bundar */
.btn-toggle-mandiri {
    width: 26.6px;
    height: 26.6px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 0.77rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-toggle-mandiri i {
    font-size: 0.77rem;
    line-height: 1;
}

.btn-toggle-mandiri:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-toggle-mandiri:active {
    transform: scale(0.95);
}

.btn-toggle-mandiri:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Aktif - Warna Hijau */
.btn-toggle-active {
    background-color: #28a745;
    color: white;
}

.btn-toggle-active:hover {
    background-color: #218838;
    color: white;
}

/* Tidak Aktif - Warna Merah */
.btn-toggle-inactive {
    background-color: #dc3545;
    color: white;
}

.btn-toggle-inactive:hover {
    background-color: #c82333;
    color: white;
}

/* ========== CUSTOM STYLE FOR SEARCH - CLEAN ONE LINE ========== */
.filter-search-row {
    margin-bottom: 1.5rem;
    padding: 0;
}

.search-container {
    width: 100%;
}

/* Input Group - Satu baris rapi */
.search-input-group {
    width: 100%;
    display: flex;
    align-items: stretch;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

/* Icon Search */
.search-input-group .input-group-prepend {
    display: flex;
}

.search-input-group .input-group-text {
    background-color: #f8f9fa;
    border: none;
    padding: 0.75rem 1rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-input-group:focus-within .input-group-text {
    background-color: #007bff;
    color: #fff;
}

/* Input Field */
.search-input-group .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    flex: 1;
    background: #fff;
    color: #495057;
}

.search-input-group .form-control:focus {
    outline: none;
    box-shadow: none;
}

.search-input-group .form-control::placeholder {
    color: #adb5bd;
}

/* Clear Button */
.search-input-group .input-group-append {
    display: flex;
}

.btn-clear-search {
    border: none;
    border-left: 1px solid #ced4da;
    background-color: #fff;
    color: #6c757d;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-input-group:focus-within .btn-clear-search {
    border-left-color: #007bff;
}

.btn-clear-search:hover {
    background-color: #dc3545;
    color: #fff;
}

.btn-clear-search:active {
    background-color: #c82333;
}

/* Responsive */
@media (max-width: 767px) {
    .filter-search-row {
        margin-bottom: 1rem;
    }
    
    .search-input-group .input-group-text,
    .search-input-group .form-control,
    .btn-clear-search {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .search-input-group .input-group-text,
    .search-input-group .form-control,
    .btn-clear-search {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* List Absen Card Header - Judul dan tombol dalam satu baris */
.card-header.bg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0.75rem 1rem;
}

.card-header.bg-info .card-title {
    margin: 0;
    flex-shrink: 0;
}

.card-header.bg-info .card-tools {
    margin-left: auto;
    flex-shrink: 0;
}

/* ========== STAT CARDS STYLING ========== */
.small-box {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.small-box .inner {
    padding: 1.25rem 1rem;
    color: #fff;
    flex: 1;
}

.small-box .inner h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
    line-height: 1.2;
}

.small-box .inner p {
    font-size: 1rem;
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.small-box .icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 4rem;
    opacity: 0.2;
    color: #fff;
    transition: opacity 0.2s ease;
}

.small-box:hover .icon {
    opacity: 0.3;
}

.small-box .small-box-footer {
    background-color: rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
}

/* Background Colors untuk Stat Cards */
.small-box.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.small-box.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.small-box.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.small-box.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Progress Bar Styling untuk Attendance */
.progress {
    height: 1rem;
    background-color: #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
}

.progress-bar.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Card untuk Progress Bar */
.card .card-body .progress {
    margin-top: 0.5rem;
}

/* ========== SWITCH TOGGLE STYLING ========== */
.form-check.form-switch {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin: 0;
    position: relative;
}

.form-check-input[type="checkbox"] {
    width: 3.5rem;
    height: 1.75rem;
    margin: 0;
    cursor: pointer;
    background-color: #6c757d;
    border: 2px solid #6c757d;
    border-radius: 1.75rem;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input[type="checkbox"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
    outline: none;
}

/* Bullet (slider) */
.form-check-input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #fff;
    transition: transform 0.3s ease;
    left: 0.125rem;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-check-input[type="checkbox"]:checked::after {
    transform: translateY(-50%) translateX(1.875rem);
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Switch di dalam attendance actions */
.attendance-actions .form-check {
    margin: 0;
    display: flex;
    align-items: center;
}

.attendance-actions .form-check-input {
    margin-right: 0.25rem;
}

/* Responsive untuk Stat Cards */
@media (max-width: 992px) {
    .small-box .inner h3 {
        font-size: 1.75rem;
    }
    
    .small-box .icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .small-box .inner {
        padding: 1rem 0.75rem;
    }
    
    .small-box .inner h3 {
        font-size: 1.5rem;
    }
    
    .small-box .icon {
        font-size: 3rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .small-box .small-box-footer {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Header Daftar Peserta */
.participants-header {
    background-color: #f8f9fa;
    text-align: center;
    padding: 1rem;
    border-bottom: 3px solid #007bff;
}

.participants-header .card-title {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Table Header Styling */
#participantsTable thead {
    background-color: #007bff;
}

#participantsTable thead th {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    border-color: #0056b3;
    padding: 0.75rem 0.5rem;
}

/* Table Body - Center alignment */
#participantsTable tbody td {
    text-align: center;
    vertical-align: middle;
}

#participantsTable tbody td:first-child {
    text-align: left;
}

/* ========== STYLING CARD ABSEN LIST - COMPACT ONE LINE ========== */
.attendance-card-item {
    border-bottom: 1px solid #dee2e6 !important;
    background-color: #fff;
    position: relative;
    padding: 0.75rem 1rem !important;
}

.attendance-card-item:last-child {
    border-bottom: none !important;
}

/* Content wrapper - satu baris */
.attendance-item-content {
    gap: 0.75rem;
    min-height: 40px;
}

/* Bagian kiri - nomor, nama, jenis */
.attendance-item-left {
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

/* Badge nomor */
.attendance-number {
    min-width: 28px;
    width: 28px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.4rem;
    flex-shrink: 0;
}

/* Nama absen */
.attendance-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Badge jenis absen */
.attendance-type {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tombol-tombol aksi - HORIZONTAL */
.attendance-actions {
    flex-shrink: 0;
    margin-left: 0.5rem;
    display: flex;
    gap: 0.25rem;
}

.attendance-actions .btn {
    padding: 0;
    font-size: 0.77rem;
    min-width: 26.6px;
    width: 26.6px;
    height: 26.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

/* Pastikan btn-toggle-mandiri juga sejajar dengan tombol lain */
.attendance-actions .btn-toggle-mandiri {
    width: 26.6px;
    height: 26.6px;
    font-size: 0.77rem;
}

/* Icon size harus sama untuk semua tombol */
.attendance-actions .btn i,
.attendance-actions .btn-toggle-mandiri i {
    font-size: 0.77rem;
    line-height: 1;
}

/* State Non-Aktif (Default) */
.attendance-card-item:not(.active-attendance) {
    background-color: #fff;
}

/* State Aktif - Item yang sedang dipilih */
.attendance-card-item.active-attendance {
    background-color: #e7f3ff !important;
    border-left-color: #007bff !important;
    border-left-width: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.attendance-card-item.active-attendance .attendance-name {
    color: #007bff;
    font-weight: 700;
}

/* Badge styling untuk item aktif */
.attendance-card-item.active-attendance .badge-secondary {
    background-color: #007bff !important;
    color: #fff;
}

.attendance-card-item.active-attendance .badge-info {
    background-color: #0056b3 !important;
    color: #fff;
}

/* Hover Effect untuk Item Non-Aktif */
.attendance-card-item:not(.active-attendance):hover {
    background-color: #f8f9fa;
    border-left-color: #6c757d !important;
    border-left-width: 3px !important;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Hover Effect untuk Item Aktif */
.attendance-card-item.active-attendance:hover {
    background-color: #d0e7ff !important;
    transform: translateX(2px);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.2);
}

/* Hover effect untuk tombol di dalam item */
.attendance-card-item .btn-group .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Jika nama terlalu panjang, jenis absen bisa turun dengan tulisan kecil */
@media (max-width: 768px) {
    .attendance-item-left {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .attendance-name {
        font-size: 0.85rem;
        width: 100%;
        order: 1;
    }
    
    .attendance-type {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        order: 2;
    }
    
    .attendance-number {
        min-width: 26px;
        width: 26px;
        font-size: 0.75rem;
        padding: 0.25rem 0.3rem;
        order: 0;
    }
    
    .attendance-actions .btn {
        padding: 0;
        font-size: 0.7rem;
        min-width: 25.2px;
        width: 25.2px;
        height: 25.2px;
    }
    
    .attendance-actions .btn-toggle-mandiri {
        width: 25.2px;
        height: 25.2px;
        font-size: 0.7rem;
    }
    
    .attendance-actions .btn i,
    .attendance-actions .btn-toggle-mandiri i {
        font-size: 0.7rem;
    }
}

/* Untuk layar sangat kecil, pastikan tombol tetap horizontal */
@media (max-width: 576px) {
    .attendance-actions {
        flex-direction: row;
        gap: 0.2rem;
    }
}

.list-group-item {
    border-right: none;
    border-top: none;
}

.list-group-flush .list-group-item:first-child {
    border-top: 1px solid #dee2e6;
}

/* Timestamp hanya tampil saat hover */
.attendance-status-wrapper {
    position: relative;
}

.attendance-status-wrapper .attendance-timestamp {
    display: none;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.attendance-status-wrapper:hover .attendance-timestamp {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MODAL POPUP STYLING ========== */
/* Pastikan modal muncul sebagai overlay popup di depan halaman, compact dan proporsional */
.modal {
    display: none !important;
    z-index: 1050 !important; /* Default z-index untuk modal */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
}

/* Modal saat ditampilkan - HARUS PALING DEPAN */
.modal.show,
.modal.in {
    display: block !important;
    z-index: 99999 !important; /* Z-index sangat tinggi untuk memastikan paling depan */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Jangan pernah sembunyikan modal aktif karena utility kelas seperti .hidden, .d-none, atau .invisible */
.modal.show.hidden,
.modal.in.hidden,
.modal.show.d-none,
.modal.in.d-none,
.modal.show.invisible,
.modal.in.invisible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Pastikan elemen inti modal tidak ikut tersembunyi oleh utility kelas */
.modal.show .modal-dialog.hidden,
.modal.in .modal-dialog.hidden,
.modal.show .modal-content.hidden,
.modal.in .modal-content.hidden,
.modal.show .modal-dialog.d-none,
.modal.in .modal-dialog.d-none,
.modal.show .modal-content.d-none,
.modal.in .modal-content.d-none,
.modal.show .modal-dialog.invisible,
.modal.in .modal-dialog.invisible,
.modal.show .modal-content.invisible,
.modal.in .modal-content.invisible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Juga untuk class Bootstrap standard */
.modal[style*="display: block"],
.modal[aria-hidden="false"] {
    display: block !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal.fade.show {
    opacity: 1;
}

/* Modal dialog - proporsional dengan konten, tidak terlalu besar */
.modal-dialog {
    position: relative;
    width: auto;
    margin: 0 auto;
    max-width: 500px;
    max-height: 85vh;
    z-index: 99999 !important; /* Di atas backdrop dan navbar - sangat tinggi */
    display: flex;
    flex-direction: column;
    transform: translate(0, 0); /* Reset transform */
}

/* Modal dialog saat modal show */
.modal.show .modal-dialog,
.modal.in .modal-dialog {
    z-index: 99999 !important;
    position: relative !important;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* Modal content - proporsional dengan konten */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 85vh;
    pointer-events: auto !important;
    background-color: #fff !important;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    outline: 0;
    z-index: 99999 !important; /* Paling depan - sangat tinggi */
    overflow: hidden;
    isolation: isolate;
}

/* Modal content saat modal show */
.modal.show .modal-content,
.modal.in .modal-content {
    z-index: 99999 !important;
    position: relative !important;
}

/* Pastikan input fields di modal bisa diisi */
.modal-content input,
.modal-content textarea,
.modal-content select {
    pointer-events: auto !important;
}

.modal-content .form-control {
    pointer-events: auto !important;
}

/* Modal header - tetap di atas, tidak scroll, compact */
.modal-header {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background-color: #fff;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Modal body - bisa di-scroll jika konten panjang, proporsional */
.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(85vh - 140px);
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar untuk modal body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modal footer - tetap di bawah, tidak scroll, compact */
.modal-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    background-color: #fff;
}

/* Backdrop - overlay gelap di belakang modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99998 !important; /* Backdrop di belakang modal, tapi di depan semua elemen lain */
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.modal-backdrop.show,
.modal-backdrop.in {
    z-index: 99998 !important;
    opacity: 0.5 !important;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Animasi modal muncul di tengah layar */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translate(0, -30px);
    opacity: 0;
    pointer-events: auto !important;
}

.modal.show .modal-dialog,
.modal.in .modal-dialog,
.modal.fade.show .modal-dialog,
.modal.fade.in .modal-dialog {
    transform: translate(0, 0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
}

/* Override untuk Bootstrap inline style */
.modal[style*="display: block"] .modal-dialog {
    transform: translate(0, 0) !important;
    opacity: 1 !important;
    z-index: 99999 !important;
}

/* Pastikan modal dialog dan content bisa diklik */
.modal-dialog,
.modal-dialog * {
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Saat modal terbuka, turunkan prioritas dropdown profil agar tidak menutupi modal */
body.modal-open #profileDropdown {
    z-index: 99995 !important;
}

/* Pastikan backdrop tidak menangkap klik pada modal content */
.modal-backdrop {
    pointer-events: auto !important;
    cursor: default !important;
}

/* Pastikan backdrop hanya menutup modal ketika diklik, tidak memblokir interaksi */
.modal-backdrop.show {
    pointer-events: auto !important;
}

/* Pastikan modal content di atas backdrop dan bisa diklik */
.modal.show .modal-content {
    pointer-events: auto !important;
    position: relative;
    z-index: 1058 !important;
    touch-action: manipulation;
}

/* Pastikan semua elemen form bisa diklik dengan mouse */
.modal.show .form-control,
.modal.show input,
.modal.show textarea,
.modal.show select,
.modal.show button {
    pointer-events: auto !important;
    cursor: text !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    opacity: 1 !important;
}

.modal.show input[type="text"],
.modal.show input[type="email"],
.modal.show input[type="number"],
.modal.show textarea,
.modal.show select {
    cursor: text !important;
    pointer-events: auto !important;
}

.modal.show button {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Pastikan tidak ada yang menutupi modal content */
.modal.show .modal-content * {
    pointer-events: auto !important;
}

/* Pastikan backdrop tidak memblokir modal content */
.modal-backdrop {
    pointer-events: auto !important;
}

.modal.show ~ .modal-backdrop {
    pointer-events: auto !important;
    z-index: 9999 !important; /* Di belakang modal, tapi di depan navbar */
}

/* Modal container tidak menangkap klik, tapi content-nya ya */
.modal.show,
.modal.in {
    pointer-events: auto !important;
    z-index: 99999 !important; /* Z-index sangat tinggi - paling depan */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal.show .modal-dialog,
.modal.in .modal-dialog {
    pointer-events: auto !important;
    z-index: 99999 !important;
    position: relative !important;
    margin: auto !important;
}

.modal.show .modal-content,
.modal.in .modal-content {
    pointer-events: auto !important;
    z-index: 99999 !important; /* Paling depan */
    background-color: #fff !important;
    position: relative !important;
    cursor: default !important;
}

/* Pastikan backdrop tetap di belakang modal tapi di depan halaman */
.modal-backdrop.show,
.modal-backdrop.in {
    z-index: 99998 !important; /* Di belakang modal, tapi di depan semua elemen lain */
    pointer-events: auto !important;
    opacity: 0.5 !important;
}

/* Pastikan SEMUA elemen di dalam modal bisa diklik */
.modal.show .modal-content,
.modal.show .modal-content *,
.modal.in .modal-content,
.modal.in .modal-content *,
.modal.show .modal-header,
.modal.show .modal-header *,
.modal.in .modal-header,
.modal.in .modal-header *,
.modal.show .modal-body,
.modal.show .modal-body *,
.modal.in .modal-body,
.modal.in .modal-body *,
.modal.show .modal-footer,
.modal.show .modal-footer *,
.modal.in .modal-footer,
.modal.in .modal-footer * {
    pointer-events: auto !important;
    cursor: default !important;
    z-index: inherit !important;
}

/* Pastikan tidak ada elemen lain yang menutupi modal */
body:has(.modal.show) *:not(.modal):not(.modal-backdrop):not(.modal *):not(.swal2-container):not(.swal2-container *) {
    position: relative;
    z-index: auto !important;
}

/* Kecualikan SweetAlert2 dari reset z-index saat modal aktif */
body:has(.modal.show) .swal2-container {
    z-index: 200000 !important; /* Pastikan toast selalu berada di atas modal/backdrop */
}

/* Pastikan navbar, sidebar, dan elemen lain tidak menutupi modal */
.navbar,
.sidebar,
.dropdown-menu,
.fixed-top,
.sticky-top {
    z-index: 9999 !important; /* Di bawah modal */
}

/* Pastikan modal dan backdrop selalu di atas */
.modal,
.modal-backdrop {
    position: fixed !important;
}

/* Pastikan button dan link bisa diklik */
.modal.show button,
.modal.show a,
.modal.show .btn,
.modal.show input,
.modal.show textarea,
.modal.show select,
.modal.show label {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* =====================
   Anti Hidden / Anti Blur untuk Modal (Global Override)
   ===================== */
/* Netralisasi utility kelas yang dapat menyembunyikan modal aktif */
.modal.show,
.modal.in {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Pastikan modal dan bagian dalamnya tidak terimbas filter blur dari ancestor */
.modal,
.modal.show,
.modal.in,
.modal .modal-dialog,
.modal.show .modal-dialog,
.modal.in .modal-dialog,
.modal .modal-content,
.modal.show .modal-content,
.modal.in .modal-content {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Jika ada utilitas seperti .hidden, .d-none, .invisible menempel pada elemen modal, tetap tampilkan */
.modal.show.hidden,
.modal.in.hidden,
.modal.show.d-none,
.modal.in.d-none,
.modal.show.invisible,
.modal.in.invisible,
.modal.show .modal-dialog.hidden,
.modal.in .modal-dialog.hidden,
.modal.show .modal-content.hidden,
.modal.in .modal-content.hidden,
.modal.show .modal-dialog.d-none,
.modal.in .modal-dialog.d-none,
.modal.show .modal-content.d-none,
.modal.in .modal-content.d-none,
.modal.show .modal-dialog.invisible,
.modal.in .modal-dialog.invisible,
.modal.show .modal-content.invisible,
.modal.in .modal-content.invisible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal.show input[type="text"],
.modal.show input[type="email"],
.modal.show input[type="number"],
.modal.show textarea,
.modal.show select {
    cursor: text !important;
}

/* Body scroll lock saat modal terbuka */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Pastikan body tidak scroll lock jika tidak ada modal terbuka */
body:not(.modal-open) {
    overflow: auto !important;
}

/* Responsive - modal lebih kecil di mobile */
@media (max-width: 576px) {
    .modal {
        padding: 0.5rem;
    }
    
    .modal-dialog {
        max-width: 100%;
        max-height: 90vh;
        margin: 0.5rem auto;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(90vh - 120px);
    }
    
    .modal-header,
    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   SIDEBAR USER PANEL STYLES - CENTER ALIGNED
   ============================================ */

/* User Panel Container */
.user-panel {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.75rem;
    text-align: left;
}

/* User Info Container - Horizontal Layout */
.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    gap: 0.75rem;
}

/* User Avatar - Left Aligned */
.user-panel .user-info .user-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: auto;
    padding: 0;
    flex-shrink: 0;
}

/* Profile Image - Perfect Circle and Left Aligned */
.user-panel .user-info .user-avatar .user-profile-img,
.sidebar .user-panel .user-profile-img,
.user-profile-img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    margin: 0 !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
}

/* User Details - Right Aligned */
.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    text-align: left;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* User Name */
.user-name,
.sidebar .user-panel .user-name {
    margin: 0 0 0.25rem 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-align: left !important;
    width: 100% !important;
    line-height: 1.3 !important;
    display: block !important;
    padding: 0 !important;
}

/* User Role Badge - Left Aligned */
.user-role,
.sidebar .user-panel .user-role {
    margin: 0 !important;
    display: inline-block !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.65rem !important;
    border-radius: 0.375rem !important;
    text-align: center !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    width: auto !important;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .user-panel .user-info .user-avatar .user-profile-img,
    .sidebar .user-panel .user-profile-img,
    .user-profile-img {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .user-name {
        font-size: 0.9rem;
    }
    
    .user-role {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* ============================================
   NEWS PAGE STYLES
   ============================================ */

/* News Show Page Container */
.news-show-container.container-fluid {
    max-width: 1720px;
    margin: 0 auto;
    padding: 15px;
}

/* News Image Wrapper */
.news-image-wrapper {
    height: auto;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow: hidden;
    margin-bottom: 0;
    padding-top: 0;
}

/* News video embed */
.news-video-embed {
    padding: 0;
}
.news-video-embed .ratio { border-top-left-radius: 18px; border-top-right-radius: 18px; overflow: hidden; }
.news-video-embed iframe { width: 100%; height: 100%; display: block; }

/* News detail card rounding */
.news-show-container .card {
    border-radius: 18px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Content Wrapper */
.content-wrapper {
    padding-left: 0;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background-color: #1f2937;
    color: #ffffff;
    padding: 16px 12px;
    z-index: 9997;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.main-content {
    margin-left: 260px;
    padding: 24px;
    padding-top: 12px;
    background-color: #f8fafc;
    width: 100%;
    box-sizing: border-box;
}

.main-content .content {
    max-width: none;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 16px;
}

.main-content .content > *:first-child {
    margin-top: 0 !important;
}

.max-w-7xl {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        opacity: 0;
        transition: opacity 0.25s ease;
        z-index: 9996;
    }
    .sidebar-overlay.show {
        opacity: 1;
    }
}

/* News Card Header */
.news-card .card-header {
    background-color: #fff;
    border-bottom: 2px solid #007bff;
    padding: 12px 15px;
}

.news-card .card-header h5 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

/* Recent News Items */
.recent-news-img-wrapper {
    width: 130px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.recent-news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.recent-news-img-wrapper:hover .recent-news-thumb {
    transform: scale(1.05);
}

.recent-news-content {
    flex: 1;
    min-width: 0;
}

.recent-news-content h6 {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 4px;
    color: inherit;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-news-content small {
    font-size: 0.75rem;
}

/* Highlight untuk item aktif di sidebar Berita Terkini */
.news-card .list-group-item {
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border-left: 3px solid transparent;
    padding: 10px 12px;
}
.news-card .list-group-item .d-flex {
    gap: 12px;
    align-items: center;
}

.news-card .list-group-item.active {
    background: linear-gradient(90deg, rgba(124,58,237,0.18), rgba(59,130,246,0.18)); /* purple → blue */
    border-left-color: #7c3aed; /* aksen ungu di sisi kiri */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.news-card .list-group-item.active a {
    color: #111111 !important; /* teks hitam untuk kontras lebih baik */
    font-weight: 600;
}

.news-card .list-group-item.active .recent-news-content small {
    color: #333333 !important; /* tanggal tetap terbaca pada latar terang */
}

.news-card .list-group-item.active .recent-news-img-wrapper {
    outline: 2px solid rgba(124,58,237,0.6);
    outline-offset: -1px;
}

.news-card .list-group-item:not(.active):hover {
    background: rgba(124,58,237,0.08);
    border-left-color: rgba(124,58,237,0.35);
}

/* Meta Info */
.meta-info {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* News Content */
.news-content .card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

.news-content .card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* News Index Page Styles dengan Tailwind CSS */
.news-item.hidden {
    display: none !important;
}

.news-item {
    display: flex;
}

/* Featured News Section - Ensure equal heights */
.featured-news-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .featured-news-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.featured-main-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-side-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.featured-side-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Line clamp utility untuk text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth transitions untuk news cards */
.news-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Pagination styling untuk Tailwind */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 2px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a {
    background: white;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.pagination a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.pagination .active span {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination .disabled span {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Responsive News Page */
@media (max-width: 768px) {
    .news-show-container.container-fluid {
        padding: 10px;
    }
    
    .news-show-container .col-md-3 {
        padding-right: 10px;
        margin-bottom: 15px;
    }

    .news-image-wrapper {
        height: auto;
        padding-top: 0;
    }

    .news-content .card-title {
        font-size: 1.5rem;
    }
    
    .recent-news-img-wrapper {
        width: 100px;
        height: 70px;
    }

    .recent-news-content h6 {
        font-size: 0.95rem;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

/* Footer Gradient Background */
.footer-gradient {
    /* Serasikan dengan hero: gunakan variabel warna dari Settings */
    background: linear-gradient(135deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%);
    background-size: 100% 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    margin-bottom: 0 !important;
}

/* Pastikan tidak ada space putih di bawah footer */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Pastikan container footer full width */
.footer-gradient .container-fluid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 5%;
    padding-right: 5%;
}

/* Footer Logo */
.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-hero-end);
    border: 3px solid var(--color-hero-start);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-logo-placeholder {
    width: 100%;
    height: 100%;
    background: #1e3a8a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Footer Social Icons */
.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ganti dari hijau ke ungu agar harmonis */
    background-color: rgba(124, 58, 237, 0.85);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.footer-social-facebook:hover {
    background-color: #1877f2;
}

.footer-social-twitter:hover {
    background-color: #1da1f2;
}

.footer-social-youtube:hover {
    background-color: #ff0000;
}

.footer-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Footer Links */
.footer-link {
    color: white;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
    color: #a0d2ff;
    padding-left: 5px;
}

/* Footer Contact */
.footer-contact-icon {
    color: #3b82f6;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-contact-text {
    color: white;
    font-size: 14px;
}

/* Pastikan tidak ada space di bawah footer */
footer.footer-gradient {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 3rem;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Pastikan tidak ada elemen setelah footer yang menambahkan space */
footer.footer-gradient + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Pastikan wrapper tidak ada margin/padding yang menyebabkan space putih */
.min-h-screen.flex.flex-col {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-gradient {
        padding: 2rem 1rem;
        padding-bottom: 2rem;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    .footer-contact-icon {
        font-size: 14px;
    }
    
    .footer-contact-text {
        font-size: 12px;
    }
    
    .footer-social-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* ============================================
   NAVBAR STYLES dengan Gradient
   ============================================ */

/* Navbar Gradient Background */
.navbar-gradient {
    background: linear-gradient(135deg, var(--color-navbar-start) 0%, var(--color-navbar-end) 100%);
    position: relative;
    overflow: visible;
}

.navbar-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-navbar-start) 0%, var(--color-navbar-end) 100%);
    opacity: .9;
    z-index: 0;
    pointer-events: none;
}

.navbar-gradient > * {
    position: relative;
    z-index: 1;
}

/* Navbar Logo */
.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navbar Links */
.navbar-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.navbar-link:hover {
    background-color: rgba(59, 130, 246, 0.4) !important;
    color: white !important;
    opacity: 1;
    transform: translateY(-2px);
}

.navbar-link.navbar-active {
    background-color: rgba(59, 130, 246, 0.5) !important;
    color: white !important;
    border-bottom: 2px solid white;
}

/* Fix untuk navbar gradient - pastikan link tetap terlihat */
#mainNavbar > div nav a {
    color: white !important;
}

#mainNavbar > div nav a:hover {
    background-color: rgba(59, 130, 246, 0.4) !important;
    color: white !important;
}

#mainNavbar > div nav a.active,
#mainNavbar > div nav a[class*="bg-white"]:not([class*="opacity-100"]) {
    background-color: rgba(59, 130, 246, 0.5) !important;
    color: white !important;
}

/* Profile Dropdown - Highest Z-Index - Selalu Paling Depan */
.profile-dropdown-container {
    position: relative !important;
    z-index: 99999 !important; /* Sangat tinggi untuk container */
    isolation: isolate !important;
}

/* Profile Dropdown - Z-Index Tertinggi, Selalu Paling Depan */
#profileDropdown {
    z-index: 99999 !important; /* Z-index tertinggi, selalu paling depan */
    position: fixed !important; /* Fixed position untuk memastikan selalu di depan */
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 0.5rem !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
    isolation: isolate !important;
    contain: layout style paint !important;
    min-width: 224px !important;
    max-width: 280px !important;
    background: #fff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.5rem !important;
    pointer-events: auto !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* Saat dropdown tersembunyi */
#profileDropdown.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Jika dropdown tidak hidden, tampilkan */
#profileDropdown.show,
#profileDropdown:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Profile dropdown container - isolation untuk stacking context baru */
.relative:has(#profileDropdown),
.profile-dropdown-container {
    position: relative !important;
    z-index: 99998 !important; /* Di bawah dropdown tapi di atas semua */
    isolation: isolate !important;
}

/* Pastikan dropdown tidak terhalang oleh elemen apapun */
.profile-dropdown-container * {
    pointer-events: auto !important;
}

#profileDropdown * {
    pointer-events: auto !important;
    z-index: inherit !important;
}

/* Ensure dropdown appears above everything including hero section */
.navbar-gradient {
    z-index: 9998 !important;
    position: sticky !important;
    top: 0 !important;
    isolation: isolate;
}

.navbar-gradient#mainNavbar,
#mainNavbar {
    min-height: 64px;
}

/* Global web page wrapper spacing */
.web-page {
    padding-left: 12px;
    padding-right: 12px;
}

.web-page--full {
    padding-left: 0;
    padding-right: 0;
}

#mainNavbar nav a {
    color: #ffffff !important;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    padding: 0.5rem 0.75rem !important;
}

#mainNavbar nav a:hover {
    background-color: rgba(59, 130, 246, 0.4) !important;
    color: #ffffff !important;
}

#mainNavbar nav a.active {
    background-color: rgba(59, 130, 246, 0.5) !important;
    color: #ffffff !important;
}

/* Pastikan jarak antar link konsisten di bar navigasi */
#mainNavbar nav a + a {
    margin-left: 0.25rem;
}

/* Profile Dropdown Container - Create new stacking context */
.navbar-gradient .relative:has(#profileDropdown),
.navbar-gradient > div > div > div:has(#profileDropdown) {
    position: relative !important;
    z-index: 9999 !important;
    isolation: isolate;
}

.profile-dropdown-container {
    position: relative !important;
    overflow: visible !important;
}
.profile-dropdown-container #profileDropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
}

.profile-dropdown-container #profileDropdown.open {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Profile dropdown contrast fix */
#profileDropdown a {
    color: #374151 !important;
    border-radius: 0.5rem;
    transition: background-color 180ms ease, color 180ms ease, transform 120ms ease;
}
#profileDropdown i {
    color: #9ca3af !important;
    transition: color 180ms ease;
}
#profileDropdown a:hover {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}
#profileDropdown a:hover i {
    color: #2563eb !important;
}
#profileDropdown a:active {
    transform: translateX(2px);
}

/* Hero section must be below navbar */
.hero-news-section {
    z-index: 1 !important;
    position: relative !important;
    isolation: isolate;
}

/* Make sure main content doesn't interfere */
.main-content {
    position: relative;
    z-index: 1;
}

/* Ensure all content below navbar is in lower stacking context */
body > main,
body > section {
    position: relative;
    z-index: 1;
}

/* ============================================
   HERO NEWS SECTION STYLES
   ============================================ */

.hero-news-section {
    position: relative !important;
    min-height: 300px;
    overflow: hidden;
    z-index: 1 !important;
    isolation: isolate;
}

/* Gradient Background */
.hero-gradient-bg {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%) !important;
    z-index: 1 !important;
}

/* Overlay helpers using hero color variables */
.hero-gradient-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%) !important;
    opacity: .55 !important;
    z-index: 2 !important;
}

.hero-gradient-overlay-top {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(0deg, var(--color-hero-start) 0%, transparent 100%) !important;
    opacity: .35 !important;
    z-index: 2 !important;
}

/* Dots Pattern */
.hero-dots-pattern {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    z-index: 2 !important;
    opacity: 0.6 !important;
}

/* Decorative Circles */
.hero-circles {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2 !important;
    overflow: hidden;
}

.hero-circle {
    position: absolute !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.hero-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    background: rgba(255, 255, 255, 0.08) !important;
    animation-delay: 0s;
}

.hero-circle-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.06) !important;
    animation: float 6s ease-in-out infinite, floatCircle2 8s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatCircle2 {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px) translateX(0px);
    }
    33% {
        transform: translate(-50%, -50%) translateY(-15px) translateX(8px);
    }
    66% {
        transform: translate(-50%, -50%) translateY(8px) translateX(-12px);
    }
}

.hero-circle-3 {
    width: 350px;
    height: 350px;
    top: -50px;
    right: -150px;
    background: rgba(255, 255, 255, 0.1) !important;
    animation-delay: 4s;
}

/* Hero Content */
.hero-news-title {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    font-size: 2.25rem;
    line-height: 1.2;
}

.hero-news-subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
    font-size: 1.125rem;
    opacity: .95;
}

.hero-news-excerpt {
    max-width: 900px;
    font-size: 1rem;
    line-height: 1.7;
    opacity: .92;
}

/* Rounded Bottom */
.hero-rounded-bottom {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: white !important;
    border-radius: 28px 28px 0 0;
    z-index: 3 !important;
}

/* ============================================
   DASHBOARD USER BRIGHT THEME
   Semua gaya cerah dipusatkan di sini
   ============================================ */

/* Variasi background kartu cerah */
.card-bright-blue { background: linear-gradient(135deg, #93c5fd 0%, #67e8f9 100%) !important; color: #fff !important; }
.card-bright-green { background: linear-gradient(135deg, #86efac 0%, #34d399 100%) !important; color: #fff !important; }
.card-bright-orange { background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%) !important; color: #fff !important; }
.card-bright-red { background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%) !important; color: #fff !important; }
.card-bright-indigo { background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%) !important; color: #fff !important; }
.card-bright-sky { background: linear-gradient(135deg, #67e8f9 0%, #7dd3fc 100%) !important; color: #fff !important; }
.card-bright-pink { background: linear-gradient(135deg, #f9a8d4 0%, #fca5a5 100%) !important; color: #fff !important; }

/* Divider lebih terang saat di dalam kartu cerah */
.card-divide-light > li { border-color: rgba(255, 255, 255, 0.28) !important; }
.card-divide-light > li + li { border-top-width: 1px; border-style: solid; }

/* Tombol kontras untuk background cerah */
.btn-contrast { background-color: #ffffff !important; color: #0ea5e9 !important; border: none !important; }
.btn-contrast:hover { background-color: #e5e7eb !important; color: #0ea5e9 !important; }

/* Bright table styling */
.bright-table { border-collapse: collapse; border-spacing: 0; }
.bright-table thead tr { background: linear-gradient(135deg, var(--color-info) 0%, var(--color-primary) 100%) !important; }
.bright-table thead th { color: #fff !important; font-weight: 700; text-align: left; padding: .75rem; }
.bright-table tbody tr { background: transparent; }
.bright-table tbody tr:nth-child(even) { background: transparent; }
.bright-table tbody td { padding: .75rem; color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* Status badges */
.status-badge { display: inline-block; padding: .25rem .5rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-success { background: var(--color-success); color: #fff; }
.badge-warning { background: var(--color-warning); color: #fff; }
.badge-danger  { background: var(--color-danger); color: #fff; }
.badge-secondary { background: var(--color-secondary); color: #fff; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-15px);
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-news-section { min-height: 360px; }
    .hero-news-title { font-size: 2rem; }
    .hero-news-subtitle { font-size: 0.95rem; padding: 0 1rem; }
    .hero-news-excerpt { font-size: 0.95rem; padding: 0 1rem; }
    .hero-circle-1,
    .hero-circle-2,
    .hero-circle-3 { transform: scale(0.6); }
}

/* ============================================
   Search Box Activity - Tailwind CSS Compatible
   ============================================ */
.search-box-activity {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.375rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(203, 213, 225, 0.3);
}

.search-box-activity:focus-within {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.search-box-activity .d-flex,
.search-box-activity .flex {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box-activity .w-100 {
    width: 100%;
}

.search-box-activity .align-items-center {
    align-items: center;
}

.search-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-info) 100%);
    border: none;
    border-radius: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-btn-icon:hover {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-primary) 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.search-btn-icon:active {
    transform: scale(0.95);
}

.search-btn-icon i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.search-btn-icon:hover i {
    transform: scale(1.1);
}

.search-input-activity {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: #1e293b;
    background: transparent;
    transition: all 0.3s ease;
}

.search-input-activity::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-input-activity:focus {
    color: #0f172a;
}

.search-input-activity:focus::placeholder {
    color: #cbd5e1;
}

/* Responsive Search Box */
@media (max-width: 768px) {
    .search-box-activity {
        padding: 0.25rem;
        border-radius: 1.5rem;
    }
    
    .search-btn-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 1.25rem;
    }
    
    .search-btn-icon i {
        font-size: 0.875rem;
    }
    
    .search-input-activity {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }
}

/* Tailwind CSS Utility Classes for Flex */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0%;
}

/* ============================================
   STRUKTUR ORGANISASI / ORGANIZATION CHART STYLES
   ============================================ */

/* Container untuk struktur organisasi */
.org-chart-container {
    width: 100%;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    margin: 2rem 0;
    overflow-x: auto;
}

/* Judul struktur organisasi */
.org-chart-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.org-chart-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-navbar-end) 100%);
    border-radius: 2px;
}

/* Wrapper utama untuk chart */
.org-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    position: relative;
}

/* Level ketua (top level) */
.org-level-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
    position: relative;
}

/* Card untuk setiap anggota */
.org-member-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    min-width: 220px;
    max-width: 280px;
    margin: 0 1rem;
    text-align: center;
}

.org-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-primary);
}

/* Card khusus untuk ketua */
.org-member-card.ketua {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-info) 100%);
    color: white;
    border-color: var(--color-primary);
    min-width: 260px;
    max-width: 320px;
    padding: 2rem;
    z-index: 10;
}

.org-member-card.ketua:hover {
    border-color: var(--color-primary);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
}

.org-member-card.ketua .org-member-name,
.org-member-card.ketua .org-member-position,
.org-member-card.ketua .org-member-gelar {
    color: white;
}

/* Foto anggota */
.org-member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.org-member-card.ketua .org-member-photo {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    width: 140px;
    height: 140px;
    border-width: 5px;
}

.org-member-card:hover .org-member-photo {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Nama anggota */
.org-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Gelar anggota */
.org-member-gelar {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.org-member-card.ketua .org-member-gelar {
    color: rgba(255, 255, 255, 0.9);
}

/* Jabatan anggota */
.org-member-position {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    display: inline-block;
}

.org-member-card.ketua .org-member-position {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Garis penghubung (connector line) */
.org-connector {
    position: absolute;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
}

/* Garis vertikal dari ketua ke level bawah */
.org-connector-vertical {
    width: 4px;
    height: 3rem;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Garis horizontal untuk level sekretaris dan bendahara */
.org-connector-horizontal {
    width: 100%;
    height: 4px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Level kedua (sekretaris dan bendahara) */
.org-level-secondary {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 2rem;
    position: relative;
    flex-wrap: wrap;
}

/* Container untuk setiap posisi di level kedua */
.org-secondary-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 320px;
}

/* Garis penghubung ke posisi sekunder */
.org-connector-to-secondary {
    width: 4px;
    height: 3rem;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    z-index: 1;
}

/* Card untuk sekretaris dan bendahara */
.org-member-card.sekretaris,
.org-member-card.bendahara {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}

.org-member-card.sekretaris {
    border-left: 4px solid #10b981;
}

.org-member-card.bendahara {
    border-left: 4px solid #f59e0b;
}

.org-member-card.sekretaris:hover {
    border-color: #10b981;
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.1), 0 10px 10px -5px rgba(16, 185, 129, 0.04);
}

.org-member-card.bendahara:hover {
    border-color: #f59e0b;
    box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.1), 0 10px 10px -5px rgba(245, 158, 11, 0.04);
}

/* Badge untuk jenis jabatan */
.org-position-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.org-position-badge.ketua {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.org-position-badge.sekretaris {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.org-position-badge.bendahara {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .org-level-secondary {
        gap: 1.5rem;
    }
    
    .org-member-card {
        min-width: 200px;
        max-width: 260px;
    }
    
    .org-member-card.ketua {
        min-width: 240px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .org-chart-container {
        padding: 1.5rem 0.75rem;
    }
    
    .org-chart-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .org-level-top {
        margin-bottom: 2rem;
    }
    
    .org-member-card {
        min-width: 180px;
        max-width: 240px;
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    .org-member-card.ketua {
        min-width: 220px;
        max-width: 280px;
        padding: 1.75rem;
    }
    
    .org-member-photo {
        width: 100px;
        height: 100px;
    }
    
    .org-member-card.ketua .org-member-photo {
        width: 120px;
        height: 120px;
    }
    
    .org-member-name {
        font-size: 1.125rem;
    }
    
    .org-level-secondary {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .org-secondary-container {
        width: 100%;
        max-width: 100%;
    }
    
    .org-connector-vertical {
        height: 2rem;
    }
    
    .org-connector-to-secondary {
        height: 2rem;
    }
}

@media (max-width: 576px) {
    .org-chart-title {
        font-size: 1.5rem;
    }
    
    .org-member-card {
        min-width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .org-member-card.ketua {
        min-width: 100%;
        max-width: 100%;
    }
    
    .org-level-top {
        margin-bottom: 1.5rem;
    }
    
    .org-member-photo {
        width: 90px;
        height: 90px;
    }
    
    .org-member-card.ketua .org-member-photo {
        width: 110px;
        height: 110px;
    }
}

/* Animasi untuk muncul */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.org-member-card {
    animation: fadeInUp 0.6s ease-out;
}

.org-member-card.ketua {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.org-member-card.sekretaris {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.org-member-card.bendahara {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* ============================================
   Participants Table & Photo - Centralized styling
   ============================================ */
.participant-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.participant-table th,
.participant-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}
.participant-table thead th {
    background-color: #f9fafb;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #374151;
}

.col-checkbox { width: 42px; }
.col-no { width: 48px; }
.col-foto { width: 60px; }
.col-nama { width: 40%; }
.col-provinsi { width: 22%; }
.col-status { width: 110px; }

.participant-photo {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(0,0,0,0.08);
}

.participant-name {
    font-weight: 600;
    color: #111827;
}

@media (max-width: 640px) {
    .participant-table th,
    .participant-table td { padding: 0.5rem; }
    .col-nama, .col-provinsi { width: auto; }
    .col-status { width: 90px; }
}

/* Unified Activity Table Styles */
.table-activity {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  --activity-purple: #7c3aed; /* Tailwind purple-600 */
  --activity-blue: #3b82f6;   /* Tailwind blue-500 */
}

.table-activity thead th {
  background: linear-gradient(90deg, rgba(124,58,237,0.10), rgba(59,130,246,0.10));
  color: #111111;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  padding: 0.75rem 1rem;
}

.table-activity tbody tr {
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  transition: background 160ms ease;
}

.table-activity tbody tr:hover {
  background: rgba(124,58,237,0.06);
}

.table-activity tbody tr.active,
.table-activity tbody tr.is-active {
  background: linear-gradient(90deg, rgba(124,58,237,0.08), rgba(59,130,246,0.08));
  box-shadow: inset 3px 0 0 var(--activity-purple);
}

.table-activity td {
  padding: 0.75rem 1rem;
  color: #374151; /* gray-700 */
}

/* Action buttons inside tables (Bootstrap variants) */
.table-activity .btn-outline-primary {
  border-color: var(--activity-purple);
  color: var(--activity-purple);
}
.table-activity .btn-outline-primary:hover {
  background-color: var(--activity-purple);
  border-color: var(--activity-purple);
  color: #ffffff;
}
.table-activity .btn-outline-warning:hover {
  background-color: #f59e0b; /* amber-500 */
  color: #ffffff;
}
.table-activity .btn-outline-danger:hover {
  background-color: #ef4444; /* red-500 */
  color: #ffffff;
}
/* ========== Gallery Lightbox (non-Tailwind) ========== */
.gallery-lightbox {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none; /* default hidden */
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.7) !important;
    z-index: 100010 !important;
}
.gallery-lightbox.show { display: flex !important; }
.gallery-lightbox img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    background: #fff;
}
.gallery-lightbox .lightbox-close {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
