/* ===== GLOBAL STYLES & VARIABLES ===== */
:root {
  --xl-blue: #ff1578;
  --xl-blue-light: #4d94ff;
  --xl-green: #00cc66;
  --xl-red: #ff4757;
  --xl-orange: #ffa502;
  --xl-dark: #1a1a1a;
  --xl-light: #f5f7fa;
  --xl-gray: #e6e6e6;
  --night-bg: #121212;
  --night-card: #1e1e1e;
  --night-border: #444;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--xl-light);
  color: var(--xl-dark);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.dark-theme {
  --xl-blue: #4d94ff;
  --xl-blue-light: #66a3ff;
  --xl-green: #00e676;
  --xl-dark: #f5f7fa;
  --xl-light: #121212;
  --xl-gray: #333;
  background-color: var(--night-bg);
  color: #f5f7fa;
}

/* ===== Logo ===== */
.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-xl {
    color: var(--xl-blue);
    font-size: 1.2rem;
    margin-right: 5px;
}

.logo-text {
    color: var(--dark);
    font-size: 1.0rem;
}


/* ===== REUSABLE COMPONENTS ===== */
/* Notification */
/* Notification Styles */
.notification {
    position: relative;
    cursor: pointer;
    margin-right: 20px;
}

.notification .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--xl-red);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    display: none;
}

.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification-dropdown.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--xl-blue);
    cursor: pointer;
    font-size: 12px;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: #f8fafd;
}

.notification-icon {
    margin-right: 12px;
    color: var(--xl-blue);
    font-size: 18px;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.notification-content p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #666;
}

.notification-content small {
    color: #999;
    font-size: 11px;
}

.unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--xl-blue);
    border-radius: 50%;
    margin-left: 10px;
    align-self: center;
}

.notification-footer {
    padding: 12px 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.notification-footer a {
    color: var(--xl-blue);
    font-size: 13px;
    text-decoration: none;
}

.empty-notifications {
    padding: 30px;
    text-align: center;
    color: #999;
}

.empty-notifications i {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-notifications p {
    margin: 0;
}

/* Logout Button */
.logout-btn {
  padding: 10px 15px;
  background: rgba(255, 77, 79, 0.15);
  color: var(--xl-red);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-btn:hover {
  background: rgba(255, 77, 79, 0.25);
  transform: translateY(-2px);
}

.dark-theme .logout-btn {
  background: rgba(255, 77, 79, 0.2);
  color: #ff6b6b;
}

.dark-theme .logout-btn:hover {
  background: rgba(255, 77, 79, 0.3);
}

/* Mobile Menu */
/* ===== HAMBURGER MENU & MOBILE SIDEBAR ===== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-right: 15px;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--xl-dark);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.dark-theme .hamburger-menu span {
    background: var(--xl-light);
}

/* Active state - transforms into X */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--xl-light);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    overflow-y: auto;
    will-change: transform;
}

.mobile-sidebar.active {
    left: 0;
}

.dark-theme .mobile-sidebar {
    background: var(--night-card);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar Content */
.mobile-sidebar .logo {
    margin-bottom: 30px;
    padding: 10px 0;
}

.mobile-sidebar .user-profile {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--xl-gray);
}

.mobile-sidebar .nav-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-sidebar .nav-menu li {
    margin-bottom: 8px;
}

.mobile-sidebar .nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--xl-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.dark-theme .mobile-sidebar .nav-menu a {
    color: var(--xl-light);
}

.mobile-sidebar .nav-menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.mobile-sidebar .nav-menu a:hover,
.mobile-sidebar .nav-menu li.active a {
    background: rgba(0, 102, 204, 0.1);
    color: var(--xl-blue);
}

.dark-theme .mobile-sidebar .nav-menu a:hover,
.dark-theme .mobile-sidebar .nav-menu li.active a {
    background: rgba(77, 148, 255, 0.2);
    color: var(--xl-blue-light);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
    }
    
    /* Hide desktop sidebar on mobile */
    .sidebar {
        display: none;
    }
    
    /* Adjust main content padding */
    .main-content {
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .mobile-sidebar {
        width: 85%;
    }
    
    .hamburger-menu {
        width: 24px;
        height: 18px;
    }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.dark-theme .mobile-menu {
  background: var(--night-card);
}

/* Cards & Containers */
.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.dark-theme .card {
  background: var(--night-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
}


/* Button Styles */
.btn-primary {
  background-color: var(--xl-blue);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-primary:hover {
  background-color: #005bb5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:hover {
  background: var(--xl-blue-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--xl-light);
  color: var(--xl-dark);
  border: 1px solid var(--xl-gray);
}

.btn-secondary:hover {
  background: var(--xl-gray);
}

.dark-theme .btn-secondary {
  background: #333;
  color: #f5f7fa;
  border-color: var(--night-border);
}

/* Forms & Inputs */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--xl-gray);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: var(--transition);
  background: white;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--xl-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.dark-theme .input-group input,
.dark-theme .input-group select,
.dark-theme .input-group textarea {
  background: #333;
  border-color: var(--night-border);
  color: #f5f7fa;
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.spinner {
  animation: spin 1s linear infinite;
}

.shake {
  animation: shake 0.5s;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
  
  .logout-btn span {
    display: none;
  }
  
  .logout-btn {
    padding: 8px;
  }
  
  .notification-badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
}

/* File lainnya akan mengimpor komponen ini */

.export-buttons {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.export-buttons button {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.export-buttons button:hover {
    background-color: #45a049;
}

.avatar, .user-avatar, .avatar-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    font-size: 40px;
    margin: 0 auto 15px;
}

.avatar-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 5px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-option:hover {
    transform: scale(1.1);
}

.avatar-option.selected {
    border: 2px solid var(--primary-color);
    transform: scale(1.1);
}

/* ===== EVENT IMAGE SLIDERS ===== */

/* Common Slider Styles */
.event-images-container {
  position: relative;
  width: 100%;
  height: 200px; /* Reduced from 180px */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 10px;
}

.event-images-slider {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.event-image-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slider-controls {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-dot.active {
  background-color: white;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}

.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}

/* Event Detail Page Slider */
/* Event Detail Page Slider - Improved Version */
.event-detail-image-container {
  position: relative;
  width: 300px;
  height: auto; /* Changed from fixed height to auto */
  aspect-ratio: 16/9; /* Maintains a nice widescreen ratio */
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  background-color: #f5f5f5; /* Fallback background */
}

.event-detail-image-container .event-images-slider {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.event-detail-image-container .event-image-slide {
  min-width: 100%;
  height: 100%;
  background-size: contain; /* Changed from cover to contain */
  background-position: center;
  background-repeat: no-repeat;
  background-color: white; /* Background for transparent images */
}

/* Slider Controls Positioning */
.event-detail-image-container .slider-controls {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.event-detail-image-container .slider-dot {
  width: 10px;
  height: 10px;
}

.event-detail-image-container .slider-arrow {
  width: 35px;
  height: 35px;
  font-size: 16px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .event-detail-image-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .event-images-container {
    height: 160px;
  }
  
  .event-detail-image-container {
    aspect-ratio: 1/1; /* Square on mobile */
    border-radius: 8px;
  }

    
  .event-detail-image-container .slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .slider-arrow {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .event-images-container {
    height: 140px;
  }
  
  .event-detail-image-container {
    aspect-ratio: 9/16; /* Portrait on small devices */
  }
  
  .slider-dot,
  .event-detail-image-container .slider-dot {
    width: 6px;
    height: 6px;
  }
}

/* Ensure clickable elements work properly */
.event-images-container * {
  pointer-events: none;
}

.slider-arrow, 
.slider-dot,
.event-images-container .slider-arrow,
.event-images-container .slider-dot {
  pointer-events: auto;
}




.error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.error-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
}

/* style.css - Tambahkan CSS untuk loading */

/* Loading Overlay Styles */
.xl-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dark-theme .xl-loader {
    background-color: rgba(0, 0, 0, 0.9);
}

.xl-loader.inline {
    position: relative;
    width: auto;
    height: auto;
    background-color: transparent;
}

.xl-loader.hiding {
    opacity: 0;
    visibility: hidden;
}

.xl-loader-content {
    text-align: center;
    max-width: 300px;
    padding: 20px;
}

.xl-loader-message {
    margin-top: 15px;
    color: var(--xl-dark);
    font-size: 16px;
    font-weight: 500;
}

.dark-theme .xl-loader-message {
    color: var(--xl-light);
}

/* Spinner Animation */
.xl-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-width: 4px;
    border-style: solid;
    animation: xl-spin 1s linear infinite;
}

@keyframes xl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dots Animation */
.xl-dots-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
}

.xl-dots-loader div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    animation: xl-bounce 1.4s infinite ease-in-out both;
}

.xl-dots-loader div:nth-child(1) {
    animation-delay: -0.32s;
}

.xl-dots-loader div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes xl-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1);
    }
}

/* Bar Animation */
.xl-bar-loader {
    width: 200px;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.xl-bar-progress {
    height: 100%;
    width: 0;
    border-radius: 2px;
    animation: xl-bar-loading 2s ease-in-out infinite;
}

@keyframes xl-bar-loading {
    0% { 
        width: 0;
        margin-left: 0;
    }
    50% {
        width: 100%;
        margin-left: 0;
    }
    100% {
        width: 0;
        margin-left: 100%;
    }
}

/* Skeleton Loading Styles */
.xl-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: xl-shimmer 1.5s infinite linear;
    border-radius: 8px;
    margin-bottom: 15px;
}

.dark-theme .xl-skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
}

.xl-skeleton.card {
    height: 200px;
}

.xl-skeleton.text {
    height: 20px;
    margin-bottom: 10px;
}

.xl-skeleton.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

@keyframes xl-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton Loading untuk Tabel */
.xl-skeleton.row {
    height: 50px;
    margin-bottom: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--xl-gray);
}

.dark-theme .xl-skeleton.row {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.xl-skeleton.row::before {
    content: "";
    display: block;
    width: 60%;
    height: 16px;
    background: var(--xl-gray);
    border-radius: 4px;
    margin: 17px 15px;
}

.dark-theme .xl-skeleton.row::before {
    background: #333;
}

.notification-item {
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: #f5f5f5;
}