* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #1f2937;
    color: white;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.login-btn {
    background: #008852;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Banner */
.banner {
    height: 80vh;
    background: linear-gradient(to right, #2563eb, #1e3a8a);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.btn {
    padding: 10px 20px;
    background: #38bdf8;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

/* About */
.about {
    padding: 60px 20px;
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: auto;
}

/* =====================================
   LOGIN PAGE DESIGN
===================================== */

.login-page {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #ea580c, #f97316);*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
    border-top: 5px solid #ea580c; /* top accent line */
}

.login-logo img {
    max-height: 75px;
    margin-bottom: 20px;
}

.login-card h2 {
    margin-bottom: 5px;
    color: #1e293b; /* deep navy */
}

.login-subtitle {
    font-size: 14px;
    color: #475569;
    margin-bottom: 25px;
}

/* Input */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

/* Button */
.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #2563eb, #1e40af);
    border: none;
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,99,235,0.3);
}

/* Error */
.error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Optimization */
@media (max-width: 768px) {

    .login-card {
        padding: 30px 20px;
    }

    .login-logo img {
        max-height: 60px;
    }

}

.error {
    color: red;
    margin-bottom: 10px;
}

.dashboard {
    padding: 60px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        padding: 15px 20px;
    }

    header nav {
        margin-top: 10px;
    }

    .banner-content h1 {
        font-size: 30px;
    }

    .login-container {
        width: 90%;
    }
}
/* =============================
   Layout Container
============================= */

.container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

.page-title {
    margin-bottom: 30px;
    text-align: center;
}

/* =============================
   Card
============================= */

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: auto;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

/* =============================
   Ticket Grid
============================= */

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.ticket-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-5px);
}

/* =============================
   Ticket Header
============================= */

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ticket-number {
    font-size: 14px;
    font-weight: bold;
    word-break: break-all;
}

/* =============================
   QR Image
============================= */

.qr-wrapper {
    text-align: center;
    margin: 15px 0;
}

.qr-wrapper img {
    width: 150px;
}

/* =============================
   Badges
============================= */

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* =============================
   Buttons
============================= */

.btn-primary {
    background: linear-gradient(to right, #2563eb, #1e3a8a);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #38bdf8;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

/* =============================
   Responsive Improvements
============================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        padding: 15px;
    }

    .card {
        padding: 20px;
    }

    .qr-wrapper img {
        width: 120px;
    }

    .ticket-number {
        font-size: 12px;
    }
}
.badge-warning {
    background: #fef3c7;
    color: #92400e;
}
/* ================================
   Summary Cards
================================ */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.summary-card h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.active-card { border-left: 5px solid #f59e0b; }
.confirmed-card { border-left: 5px solid #10b981; }
.scanned-card { border-left: 5px solid #ef4444; }

/* ================================
   Ticket Grid
================================ */

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.ticket-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-6px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ticket-number {
    font-weight: bold;
    font-size: 13px;
    word-break: break-all;
}

.qr-wrapper {
    text-align: center;
    margin: 15px 0;
}

.qr-wrapper img {
    width: 140px;
}

/* ================================
   Buttons
================================ */

.ticket-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-confirm {
    background: red;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-download {
    background: #3b82f6;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

/* ================================
   Empty State
================================ */

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
}

/* ================================
   Responsive
================================ */

@media (max-width: 768px) {
    .qr-wrapper img {
        width: 110px;
    }

    .ticket-number {
        font-size: 11px;
    }

    .ticket-actions {
        flex-direction: column;
    }
}

/* =====================================
   Modern Responsive Navigation
===================================== */

.main-header {
    background: #111827;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* Desktop Menu */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #3b82f6;
}

.logout-btn {
    background: #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 5px;
}

/* =====================================
   Mobile Responsive
===================================== */

@media (max-width: 768px) {

    /* Hide desktop menu */
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        background: #1f2937;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
        border-radius: 0 0 0 10px;
        box-shadow: -5px 10px 20px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }
}
/* Logo Image */
.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}
/* ==========================
   Gallery Section
========================== */

.gallery-section {
    padding: 60px 20px;
    background: #f9fafb;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.gallery-tabs {
    text-align: center;
    margin-bottom: 30px;
}

.tab-btn {
    background: #e5e7eb;
    border: none;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
}

.tab-btn.active {
    background: #2563eb;
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Video Wrapper */
.video-wrapper iframe {
    width: 100%;
    height: 200px;
    border-radius: 12px;
}

/* Hide */
.hidden {
    display: none;
}

/* Modal */
.modal {  display: none;position: fixed;inset: 0;  background: rgba(0,0,0,0.8); justify-content: center;align-items: center;z-index: 2000;}
.modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

/* Responsive */
@media(max-width:768px){
    .video-wrapper iframe {
        height: 180px;
    }
}
  
/* =====================================
   HERO BANNER
===================================== */

.hero-banner {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(rgba(17,24,39,0.8), rgba(17,24,39,0.2)),
                url('images/gallery/img.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 120px 20px 80px;   /* top padding allows logo overlap */
}

.hero-content { max-width: 800px;}
.hero-content h1 { font-size: 42px; margin-bottom: 20px;}
.hero-content p {font-size: 18px; margin-bottom: 30px; opacity: 0.7;}

/* Buttons */
.hero-buttons {display: flex; gap: 15px;justify-content: center;flex-wrap: wrap; opacity:0.8}
.btn-primary {background: #008852; color: white;padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 500;transition: 0.3s;}
.btn-primary:hover {background: #2563eb;}
.btn-outline { border: 2px solid white; color: white; padding: 12px 22px; border-radius: 8px;text-decoration: none;transition: 0.3s; background:#fa479a}
.btn-outline:hover {background: white; color: #111827;}

/* =====================================
   Responsive Hero
===================================== */
@media (max-width: 768px) {
    .hero-banner { min-height: 70vh;padding: 100px 20px 60px;  }
    .hero-content h1 {font-size: 28px;}
    .hero-content p { font-size: 16px;}
}
/* ==========================
   About Section
========================== */
.about-section {padding: 30px 20px;background: white;}
.about-header {display: flex;    justify-content: space-between;align-items: center;margin-bottom: 30px;flex-wrap: wrap;}
.about-content {max-width: 900px;    line-height: 1.8;    font-size: 16px;    color: #374151;}
.about-content p {  margin-bottom: 18px;}

/* Language Toggle */
.language-toggle { display: flex; gap: 10px;}
.lang-btn {    border: 1px solid #d1d5db;    padding: 6px 14px;    border-radius: 20px;    background: white;    cursor: pointer;}
.lang-btn.active {background: #2563eb;color: white;}
/* Hidden Class */
.hidden { display: none;}

/* Responsive */
@media(max-width:768px){
    .about-header {flex-direction: column; align-items: flex-start; gap: 15px; }
    .about-content {font-size: 15px;}
}