:root {
    --primary-color: #c9a227;
    --primary-dark: #8b7019;
    --secondary-color: #d4a84b;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-white: #fff;
    --border-color: #ddd;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-wrapper {
    margin: 5rem 0;
    scroll-margin-top: 80px;
}

.site-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--bg-white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    color: var(--bg-white);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.main-nav > ul > li > a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* .main-nav > ul > li > a:hover {
    background-color: rgba(255,255,255,0.2);
} */

.main-nav .has-dropdown {
    position: relative;
}

.main-nav > ul > li.has-dropdown > a .fas.fa-chevron-down {
    display: none;
}

.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    min-width: 160px;
    box-shadow: var(--shadow);
    border-radius: 0 0 5px 5px;
    z-index: 100;
    list-style: none;
    padding: 0;
}

.main-nav .has-dropdown:hover .dropdown {
    display: block;
}

.main-nav .dropdown li a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-nav .dropdown li a:hover {
    background-color: rgba(255,255,255,0.15);
}

.main-nav .dropdown li:last-child a {
    border-bottom: none;
    border-radius: 0 0 5px 5px;
}

.main-nav .dropdown .fas {
    font-size: 0.7rem;
    margin-left: auto;
}

.main-content {
    flex: 1;
    padding: 0 0 2rem;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/temple-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-carousel {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #333;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.carousel-slide .slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-slide .slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.carousel-slide .slide-content .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.carousel-slide.active .slide-content .btn {
    opacity: 1;
    transform: translateY(0);
}

.lamp-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding-bottom: 40px;
}

.lamp-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    align-items: stretch;
}

.lamp-carousel-slide {
    flex: 0 0 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
}

.lamp-carousel-slide .lamp-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.lamp-carousel-slide .lamp-card .btn {
    margin-top: auto;
}

@media (min-width: 600px) {
    .lamp-carousel-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 900px) {
    .lamp-carousel-slide {
        flex: 0 0 33.333%;
    }
}

.lamp-carousel .carousel-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.lamp-carousel .carousel-arrow-prev {
    left: 5px;
}

.lamp-carousel .carousel-arrow-next {
    right: 5px;
}

.lamp-carousel .carousel-dots {
    bottom: 10px;
}

.lamp-carousel .carousel-dot {
    width: 10px;
    height: 10px;
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding-bottom: 40px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    align-items: stretch;
}

.gallery-slide {
    flex: 0 0 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
}

.gallery-card {
    width: 100%;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.gallery-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.gallery-media img,
.gallery-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--bg-white);
}

.gallery-overlay.youtube i {
    font-size: 3rem;
    color: #ff0000;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.gallery-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.gallery-content .btn {
    margin-top: auto;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

@media (min-width: 600px) {
    .gallery-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 900px) {
    .gallery-slide {
        flex: 0 0 33.333%;
    }
}

.gallery-carousel .carousel-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.gallery-carousel .carousel-arrow-prev {
    left: 5px;
}

.gallery-carousel .carousel-arrow-next {
    right: 5px;
}

.gallery-carousel .carousel-dots {
    bottom: 10px;
}

.gallery-carousel .carousel-dot {
    width: 10px;
    height: 10px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-content {
    width: 95%;
    max-width: none;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-media {
    width: 100%;
    max-width: none;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-media iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
}

.lightbox-info {
    text-align: center;
    padding: 1rem;
    color: var(--bg-white);
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    color: rgba(255,255,255,0.8);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--bg-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-arrow-prev {
    left: 20px;
}

.carousel-arrow-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.8);
}

.carousel-dot.active {
    background: var(--bg-white);
}

@media (max-width: 768px) {
    .carousel-container {
        height: 350px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-arrow-prev {
        left: 10px;
    }

    .carousel-arrow-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 280px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slide-content .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
    }

    .carousel-dots {
        bottom: 15px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

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

.btn-inline {
    display: inline-block;
    width: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.lamp-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.lamp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.lamp-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lamp-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.lamp-card .price {
    font-size: 1.5rem;
    color: var(--danger-color);
    font-weight: bold;
    margin: 1rem 0;
}

.lamp-card .description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.form-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.admin-form {
    max-width: 100%;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-left {
    flex: 1;
}

.form-right {
    width: 300px;
    flex-shrink: 0;
}

.form-right > .booking-summary,
.form-right > .donation-info-card {
    position: sticky;
    top: 2rem;
}

.donation-info-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.donation-info-card h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
}

.donation-info-card h3:first-child {
    margin-top: 0;
}

.donation-info-card p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.donation-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.donation-info-card li {
    padding: 0.4rem 0;
    color: #555;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.donation-info-card li:last-child {
    border-bottom: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    /* display: block; */
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group label:has(input[type="checkbox"]) {
    display: inline;
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.form-group input[type="checkbox"] {
    width: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
    gap: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.form-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-spinner.hidden {
    display: none;
}

.site-footer {
    background-color: #2c2c2c;
    color: var(--bg-white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section:nth-child(1) { order: 3; }
.footer-section:nth-child(2) { order: 2; }
.footer-section:nth-child(3) { order: 1; }

@media (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-direction: column;
    }
    .footer-section:nth-child(1) { order: 3; }
    .footer-section:nth-child(2) { order: 2; }
    .footer-section:nth-child(3) { order: 1; }
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

/* .footer-section li {
    margin-bottom: ;
} */

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--bg-white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.fb-page {
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

.footer-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-feedback-form input,
.footer-feedback-form textarea {
    padding: 0.6rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: var(--bg-white);
    font-family: inherit;
    font-size: 0.9rem;
}

.footer-feedback-form input::placeholder,
.footer-feedback-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.footer-feedback-form .btn {
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-feedback-form .btn:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: var(--bg-white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 100;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .sidebar-title {
    display: none;
}

.sidebar-header {
    padding: 1rem;
    background-color: #1a252f;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-toggle {
    background: #34495e;
    border: none;
    color: var(--bg-white);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background-color: #4a5d75;
}

.sidebar-title {
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s, width 0.3s;
}

.sidebar.collapsed .sidebar-title {
    display: none;
}

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

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.sidebar-nav a:hover {
    background-color: #34495e;
}

.sidebar-nav a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .badge {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: auto;
}

.sidebar.collapsed .badge {
    display: none;
}

.nav-text {
    margin-left: 12px;
    white-space: nowrap;
    transition: opacity 0.3s, width 0.3s;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .sidebar-nav a i {
    margin: 0;
}

.admin-content {
    margin-left: 250px;
    flex: 1;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

body.sidebar-collapsed .admin-content {
    margin-left: 70px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
}

.data-table th a {
    color: var(--bg-white);
}

.data-table th a:hover {
    text-decoration: underline;
}

.data-table tr:hover {
    background-color: var(--bg-light);
}

.data-table tr.unread-row {
    background-color: rgba(255, 243, 205, 0.5);
    font-weight: 500;
}

.data-table tr.unread-row:hover {
    background-color: rgba(255, 243, 205, 0.8);
}

.data-table .status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-completed {
    background-color: #cce5ff;
    color: #004085;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-paid {
    background-color: #d4edda;
    color: #155724;
}

.status-unpaid {
    background-color: #f8d7da;
    color: #721c24;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-card .stat-label {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.login-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-active {
    background-color: var(--success-color);
    color: var(--bg-white);
}

.badge-inactive {
    background-color: var(--danger-color);
    color: var(--bg-white);
}

/* ========================================
   Admin Modal Styles
   ======================================== */
#detailModal,
#editModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#detailModal.active,
#editModal.active {
    display: flex;
}

#detailModal > div,
#editModal > div {
    background: white;
    border-radius: 10px;
    box-sizing: border-box;
}

#detailModal > div {
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

#editModal > div {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

/* ========================================
   Admin RWD Styles (Mobile/Tablet)
   ======================================== */

/* Sidebar toggle button in admin header - hidden by default */
.admin-header .sidebar-toggle {
    display: none;
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .admin-header .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .sidebar.collapsed {
        left: -250px;
    }

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

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

    .admin-content {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
    }

    .admin-header {
        flex-wrap: wrap;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-header > h2 {
        flex: 1;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .admin-content {
        padding: 0.75rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .admin-header > h2 {
        font-size: 1.25rem;
        margin: 0;
    }

    .admin-header .sidebar-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .admin-header > div {
        width: 100%;
    }

    .admin-header form {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .admin-header input[type="text"],
    .admin-header select {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .admin-header .btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table table {
        min-width: 700px;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }

    .pagination .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    /* Admin Stat Cards */
    .admin-content .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .admin-content .stat-card {
        padding: 0.75rem;
    }

    .admin-content .stat-card .stat-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .admin-content .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .admin-content .stat-card .stat-label {
        font-size: 0.8rem;
    }

    /* Admin Forms */
    .admin-content .admin-form {
        padding: 1rem;
    }

    .admin-content .admin-form h3 {
        font-size: 1rem;
    }

    .admin-content .form-group {
        margin-bottom: 0.75rem;
    }

    .admin-content .form-group label {
        font-size: 0.9rem;
    }

    .admin-content .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Admin Modal - adjust for mobile */
    #detailModal > div,
    #editModal > div {
        width: 95%;
        padding: 1rem;
    }

    /* Admin Table buttons */
    .data-table .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Admin Login */
    .login-container .login-box {
        margin: 0.5rem;
        padding: 1rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .admin-content {
        padding: 0.5rem;
    }

    /* Admin Stat Cards - single column */
    .admin-content .card-grid {
        grid-template-columns: 1fr;
    }

    .admin-content .stat-card {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
    }

    .admin-content .stat-card .stat-icon {
        margin-bottom: 0;
        font-size: 1.5rem;
    }

    .admin-content .stat-card .stat-value {
        font-size: 1.1rem;
    }

    /* Admin Tables */
    .data-table table {
        min-width: 600px;
    }

    .data-table th,
    .data-table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.75rem;
    }

    .data-table select {
        font-size: 0.7rem;
        padding: 0.2rem;
    }

    .admin-form .btn,
    .form-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hide-mobile {
        display: none;
    }

    .pagination span {
        display: none;
    }
}

/* ========================================
   Frontend RWD Styles
   ======================================== */

/* Desktop: Hide hamburger */
.site-header .menu-toggle {
    display: none;
}

/* Desktop: Normal nav dropdown */
.site-header .main-nav .has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    min-width: 160px;
    box-shadow: var(--shadow);
    border-radius: 0 0 5px 5px;
    z-index: 100;
    list-style: none;
    padding: 0;
}

.site-header .main-nav .has-dropdown:hover .dropdown {
    display: block;
}

/* Nav Overlay - Black */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile: Show hamburger */
@media (max-width: 768px) {
    .site-header .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        cursor: pointer;
        position: relative;
        z-index: 1002;
        padding: 0;
    }

    .site-header .menu-toggle .hamburger {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--bg-white);
        position: relative;
        transition: all 0.3s ease;
    }

    .site-header .menu-toggle .hamburger::before,
    .site-header .menu-toggle .hamburger::after {
        content: '';
        display: block;
        width: 24px;
        height: 3px;
        background: var(--bg-white);
        position: absolute;
        transition: all 0.3s ease;
    }

    .site-header .menu-toggle .hamburger::before {
        top: -8px;
    }

    .site-header .menu-toggle .hamburger::after {
        top: 8px;
    }

    .site-header .menu-toggle.active .hamburger {
        background: transparent;
    }

    .site-header .menu-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .site-header .menu-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .site-header {
        position: relative;
        z-index: 1000;
    }

    /* Frontend Navigation - Sidebar from left */
    .site-header .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-dark), var(--primary-color));
        padding: 4rem 0 1.5rem;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        margin: 0;
        border: none;
        border-radius: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

    .site-header .main-nav.active {
        left: 0;
    }

    .site-header .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .site-header .main-nav > ul > li > a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        justify-content: space-between;
        display: flex;
        color: var(--bg-white);
        text-decoration: none;
        font-weight: 500;
    }

    .site-header .main-nav > ul > li > a:hover {
        background-color: rgba(255,255,255,0.1);
    }

    /* Mobile: Disable desktop hover dropdowns */
    .site-header .main-nav .has-dropdown:hover .dropdown {
        display: none;
    }

    .site-header .main-nav .has-dropdown .dropdown {
        display: none;
        position: static;
        background: rgba(0,0,0,0.25);
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .site-header .main-nav .has-dropdown .dropdown.active {
        display: block;
    }

    .site-header .main-nav .dropdown li a {
        padding: 0.8rem 1.5rem 0.8rem 2.5rem;
        font-size: 0.95rem;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .site-header .main-nav .dropdown li:last-child a {
        border-bottom: none;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    /* Frontend Forms */
    .main-content .form-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .main-content .form-left,
    .main-content .form-right {
        width: 100%;
    }

    .main-content .form-right > .booking-summary,
    .main-content .form-right > .donation-info-card {
        position: static;
        margin-top: 1rem;
    }

    /* Frontend Buttons */
    .main-content .btn:not(.btn-inline),
    .site-header .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .main-content .btn-inline {
        width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .main-content .lamp-grid {
        grid-template-columns: 1fr;
    }

    .main-content .payment-methods > div {
        grid-template-columns: 1fr !important;
    }

    .site-header .main-nav > ul > li.has-dropdown > a .fas.fa-chevron-down {
        display: inline-block;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-card {
        padding: 1rem;
    }

    .news-card p {
        margin-bottom: 3rem;
    }

    .main-content .news-card .btn {
        width: auto;
        padding: 0.25rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo h1 {
        font-size: 1.2rem;
    }
}

/* ========================================
   Booking Summary Styles
   ======================================== */

.booking-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.booking-summary h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.booking-summary .item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.booking-summary .total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--danger-color);
    border-bottom: none;
    padding-top: 1rem;
}

/* ========================================
   Map Container Styles
   ======================================== */

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
}

.map-fb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.fb-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-white);
}

.fb-container .fb-page {
    margin-top: 0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .map-fb-grid {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 300px;
    }
}

/* ========================================
   News Section Styles
   ======================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

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

.news-tag {
    display: inline-block;
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-tag-news {
    background: #2c5282;
}

.news-tag-event {
    background: #c53030;
}

.news-tag-lamp {
    background: var(--primary-color);
}

.news-tag-gallery {
    background: #38a169;
}

.news-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-date i {
    margin-right: 0.3rem;
}

.news-card h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.news-card .btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.news-card .btn i {
    margin-right: 0.3rem;
}

.news-card .btn:hover {
    background: var(--primary-dark);
}

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}
