:root {
    --primary: #ff9500;
    --primary-dark: #e68a00;
    --primary-light: #ffe4cc;
    --secondary: #ffd700;
    --accent: #ff6b9d;
    --gradient: linear-gradient(135deg, #ff9500 0%, #ffb84d 50%, #ffd700 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fef9f7;
}

.bg-primary-custom {
    background: var(--gradient) !important;
}

.btn-primary-custom {
    background: var(--gradient) !important;
    border: none !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 10px 30px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 93, 117, 0.4);
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    border-radius: 50px !important;
    padding: 10px 30px;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background: var(--gradient) !important;
    color: white !important;
    border-color: transparent !important;
}
.btn-outline-primary-custom.active {
    background: var(--gradient) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    transform: scale(1.05);
}

.text-primary-custom {
    color: var(--primary) !important;
}

.hero-section {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-decoration i {
    animation: bounce 2s ease-in-out infinite;
}

.hero-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-decoration i:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-bird svg {
    animation: float-bird 4s ease-in-out infinite;
    filter: drop-shadow(0 12px 24px rgba(255, 167, 38, 0.25));
    max-width: 100%;
    height: auto;
}

.hero-bird svg .note-1 {
    animation: float-note 3s ease-in-out infinite;
    transform-origin: 25px 60px;
}

.hero-bird svg .note-2 {
    animation: float-note 3.5s ease-in-out infinite 0.5s;
    transform-origin: 170px 50px;
}

.hero-bird svg .note-3 {
    animation: float-note 4s ease-in-out infinite 1s;
    transform-origin: 180px 100px;
}

@keyframes float-bird {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-15px) rotate(2deg) scale(1.02);
    }
    50% { 
        transform: translateY(-8px) rotate(-2deg) scale(1);
    }
    75% { 
        transform: translateY(-12px) rotate(1deg) scale(1.01);
    }
}

@keyframes float-note {
    0%, 100% { 
        transform: translateY(0) rotate(-5deg);
        opacity: 0.85;
    }
    50% { 
        transform: translateY(-10px) rotate(5deg);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card {
    border-radius: 15px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.gallery-card {
    overflow: hidden;
    border-radius: 12px !important;
}

.gallery-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.video-thumb {
    position: relative;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-play-btn:hover {
    opacity: 1;
    color: white;
}

.nav-pills .nav-link.active {
    background: var(--gradient) !important;
    border: none;
}

.nav-pills .nav-link {
    color: var(--primary);
    border-radius: 50px;
    margin: 0 5px;
}

.nav-pills .nav-link:hover {
    color: var(--primary-dark);
}

.navbar .nav-link,
.navbar .navbar-brand {
    font-weight: 500;
    color: white !important;
}
.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
    color: rgba(255,255,255,0.85) !important;
}

.navbar .dropdown-menu .active {
    background: var(--primary-light);
    color: var(--primary);
}

footer {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%) !important;
}

.form-control, .form-select {
    border-radius: 10px !important;
    border: 2px solid #eee;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(232, 93, 117, 0.15);
}

.alert {
    border-radius: 12px;
    border: none;
}

.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.pagination .page-link {
    color: var(--primary);
    border-radius: 50%;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: var(--gradient);
    border: none;
    color: white;
}

.badge {
    border-radius: 50px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Flatpickr custom theme */
.flatpickr-calendar {
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    border: none !important;
    overflow: hidden;
}
.flatpickr-months {
    background: var(--gradient) !important;
    padding: 8px 0;
}
.flatpickr-months .flatpickr-month,
span.flatpickr-weekday {
    background: transparent !important;
    color: white !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: white !important;
    font-weight: 600;
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #333;
}
.flatpickr-weekdays {
    background: #fff5e6 !important;
}
span.flatpickr-weekday {
    color: var(--primary-dark) !important;
    font-weight: 600;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--gradient) !important;
    border: none !important;
    color: white !important;
}
.flatpickr-day.today {
    border-color: var(--primary) !important;
}
.flatpickr-day:hover {
    background: var(--primary-light) !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: white !important;
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: rgba(255,255,255,0.7) !important;
}
.flatpickr-day.inRange {
    background: var(--primary-light) !important;
    border-color: transparent !important;
    box-shadow: -5px 0 0 var(--primary-light), 5px 0 0 var(--primary-light);
}

#photoModal .modal-content {
    box-shadow: none;
}

#photoModal .modal-header button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#photoModal .modal-header button:hover {
    opacity: 1;
    transform: scale(1.05);
}

#prevPhoto, #nextPhoto {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-weight: 600;
}

.hover-opacity-100:hover { opacity: 1 !important; }
.transition { transition: opacity 0.3s ease; }
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #scrollTopBtn { bottom: calc(24px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .gallery-img {
        height: 180px;
    }
    #prevPhoto, #nextPhoto {
        font-size: 0.8rem;
        padding: 8px 12px !important;
    }
    .share-btn {
        width: 44px !important;
        height: 44px !important;
    }
    .share-btn i {
        font-size: 1.25rem !important;
    }
    .card:hover {
        transform: none !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    }
}

@media (max-width: 576px) {
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2.2rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.8rem; }
    .display-5 { font-size: 1.6rem; }
    .display-6 { font-size: 1.4rem; }
    .hero-section { min-height: 350px; }
    .hero-section h1 { font-size: 1.5rem; }
    .hero-section { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .hero-content { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .gallery-img { height: 150px; }
    footer .sponsor-logo { max-height: 60px !important; max-width: 130px !important; }
    .admin-content { padding: 12px !important; overflow-x: hidden; }
    .admin-wrapper { overflow-x: hidden; }
    .admin-sidebar .brand { padding: 12px 10px; }
    .admin-sidebar .brand-title { font-size: 0.85rem; }
    input.form-control, select.form-select, textarea.form-control { font-size: 16px; }
    #yearTabs .nav-link { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
    .nav-pills .nav-link { margin: 2px; }
    .admin-stats .card { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    .admin-stats h4 { font-size: 1.1rem; }
    .admin-stats small { font-size: 0.65rem; }
    .admin-stats i { font-size: 1.2rem; }
    .card-header-pills .nav-link { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
    .admin-content { overflow-x: hidden; }
    .table td:last-child .btn { padding: 0.2rem 0.4rem; font-size: 0.75rem; }
    .table td:last-child .btn i { font-size: 0.85rem; }
    .admin-search-row { flex-wrap: wrap; gap: 0.5rem; }
    .admin-search-row .col { min-width: 0; flex: 1 1 100%; }
    .admin-wrapper { overflow-x: hidden; }
    .admin-content h1 { font-size: 1.4rem; }
    .card-body.p-4 { padding: 1rem !important; }
    .card-body.p-4 h5 { font-size: 1rem; }
    .card-body.p-4 .btn-lg { padding: 0.5rem 1rem; font-size: 0.9rem; }
    .card-body .d-flex.flex-wrap.gap-2 { flex-direction: column; }
    .card-body .d-flex.flex-wrap.gap-2 .btn { width: 100%; text-align: center; }
    .card-body .row.text-center p.fw-bold { font-size: 0.85rem; }
    .card-body .row.text-center .badge { font-size: 0.7rem; padding: 0.25rem 0.4rem; }
    .admin-content .header-actions { flex-direction: column; width: 100%; }
    .admin-content .header-actions .btn { width: 100%; }
    .d-flex.gap-2.mt-4,
    .d-flex.gap-2.mt-3 { flex-direction: column; }
    .d-flex.gap-2.mt-4 .btn,
    .d-flex.gap-2.mt-3 .btn { width: 100%; }
    .tox-tinymce { width: 100% !important; max-width: 100% !important; }
    .tox-tinymce iframe { width: 100% !important; max-width: 100% !important; }
    .media-table-wrap { max-height: none; }
    .table-responsive .table td,
    .table-responsive .table th { white-space: nowrap; }
    .table td, .table th { word-break: break-word; }
}
@media (max-width: 768px) {
    .register-page .card-body { text-align: center; }
    .register-page .card-body .form-label { text-align: center !important; }
    .register-page .card-body .form-control { text-align: center; }
    .register-page .card-body .form-control::placeholder { text-align: center; }
    .register-page .card-body .form-check { text-align: left; max-width: 500px; margin-left: auto; margin-right: auto; }
}
    .paese-page h2 { text-align: center; }
    .paese-page .card-body p,
    .paese-page .card-body h5 { text-align: center; }
    .paese-page .card-body .d-flex { justify-content: center; flex-wrap: wrap; }
    .paese-page .d-flex.align-items-start,
    .paese-page .d-flex.align-items-center { flex-direction: column; align-items: center !important; text-align: center; }
    .paese-page .d-flex.align-items-start i { margin-right: 0 !important; margin-bottom: 0.5rem; }

    .table td:last-child .btn { padding: 0.35rem 0.55rem; font-size: 0.85rem; }
    .table td:last-child .btn i { font-size: 1rem; }
    .pagination .page-link { padding: 0.35rem 0.6rem; }
    .admin-stats .col-4:nth-child(7) { width: 100%; }
    .admin-stats .col-4:nth-child(7) .card { flex-direction: row; align-items: center; gap: 10px; }
    .admin-stats .col-4:nth-child(7) .card .text-center { flex: 1; }
}


/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* Mobile Topbar */
.mobile-topbar {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    gap: 8px;
}

.mobile-topbar .brand {
    flex: 1;
    text-align: center;
}

.mobile-topbar .brand-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-toggle {
    background: rgba(255,255,255,0.9);
    color: #f57c00;
    border: none;
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.sidebar-toggle:hover {
    background: #fff;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.sidebar-overlay.active {
    display: block;
}

/* Admin Wrapper - Main Layout */
.admin-wrapper {
    min-height: 100vh;
    background: #f4f6f9;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50, #1a252f);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0,0,0,0.3);
    z-index: 999;
    transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.admin-sidebar.active {
    left: 0;
}

.admin-sidebar .brand {
    padding: 18px 12px;
    background: linear-gradient(135deg, #f57c00, #ff9800);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-sidebar .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9500, #ff6b00);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-sidebar .brand-icon i {
    color: #fff;
    font-size: 1.2rem;
}

.admin-sidebar .brand-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 0;
}

.admin-sidebar .brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #000;
    text-align: center;
    line-height: 1.25;
}

.admin-sidebar .nav {
    padding: 8px 10px 4px;
    flex: 1;
}

.admin-sidebar .nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.25);
    padding: 16px 12px 6px;
    user-select: none;
}

.admin-sidebar .nav-section-label:first-child {
    padding-top: 4px;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    position: relative;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.admin-sidebar .nav-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255,149,0,0.1);
    color: #fff !important;
    border-left-color: rgba(255,149,0,0.3);
}

.admin-sidebar .nav-link:hover i {
    transform: translateX(2px);
}

.admin-sidebar .nav-link.active {
    background: rgba(255,149,0,0.12);
    color: #fff !important;
    border-left-color: #ff9500;
    box-shadow: inset 0 1px 3px rgba(255,149,0,0.05);
}

.admin-sidebar .nav-link.active i {
    color: #ff9500;
}

.admin-sidebar .nav-link.text-danger {
    color: #ff6b6b !important;
}

.admin-sidebar .nav-link.text-danger:hover {
    background: rgba(255,107,107,0.1);
    color: #ff8a8a !important;
    border-left-color: rgba(255,107,107,0.3);
}

.admin-sidebar .nav-link.text-danger.active {
    background: rgba(255,107,107,0.12);
    border-left-color: #ff6b6b;
}

.admin-sidebar .nav-link.text-danger.active i {
    color: #ff6b6b;
}

.admin-sidebar .nav-bottom {
    padding: 8px 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Admin Content Area */
.admin-content {
    flex: 1;
    padding: 24px 28px;
    overflow-x: hidden;
    min-width: 0;
}

.admin-content h1 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

.admin-content h1 i {
    color: #ff9500;
    margin-right: 8px;
}

/* Mobile Sidebar Behavior */
@media (max-width: 991px) {
    .sidebar-overlay {
        display: none;
    }
    .sidebar-overlay.active {
        display: block;
    }
    .admin-content {
        padding: 16px;
    }
}

