/* General Styles */
:root {
    /* Color Variables */
    --primary-color: #ff1a1a;
    --primary-dark: #cc0000;
    --secondary-color: #0a5800;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --background-color: #f4f4f4;
    --card-background: #ffffff;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Spacing Variables */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* Border Radius */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;
    --border-radius-circle: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #083f00;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-background);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo h1:hover {
    transform: scale(1.05);
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    padding: 5px var(--spacing-sm);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 500px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 0 5px rgba(255, 26, 26, 0.3);
    border-color: var(--primary-color);
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    padding: 8px;
    flex: 1;
    font-size: 16px;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.search-bar button:hover {
    color: var(--primary-color);
}

.right-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.user-profile img:hover {
    border-color: var(--primary-color);
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    background: #e0e0e0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    justify-content: center;
    transition: right 0.3s ease;
}

.nav-links li a {
    color: var(--text-color);
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: bold;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: var(--border-radius-sm);
    display: block;
}

.nav-links li a:hover {
    color: var(--primary-color);
    background: rgba(255, 26, 26, 0.1);
}

.nav-links li a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: var(--text-color);
    margin-bottom: 4px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: absolute;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px var(--spacing-lg);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #ff5e5e 100%);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.1)" d="M0,0 L100,0 L100,5 C60,20 40,20 0,5 Z"></path></svg>');
    background-size: 100% 100%;
    pointer-events: none;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 12px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Event Cards */
.event-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin: var(--spacing-xl) 0;
}

.event-card {
    width: 280px;
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-details {
    padding: var(--spacing-md);
}

.event-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.event-info {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--light-text);
}

.event-date, .event-location, .event-price {
    font-size: 13px;
    margin: 2px 0;
    color: var(--lighter-text);
}

.book-now {
    width: 100%;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: var(--spacing-sm);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: var(--spacing-sm);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.book-now:hover {
    background: #333;
}

.book-now:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

/* Section Titles */
.section-title {
    margin-top: 40px;
    font-size: 28px;
    font-weight: bold;
    text-align: left;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.form-container h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    font-size: 24px;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 26, 26, 0.3);
}

.radio-group {
    display: flex;
    gap: var(--spacing-md);
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    width: auto;
}

.form-links {
    margin-top: 25px;
    text-align: center;
}

.form-links a {
    color: var(--primary-color);
    text-decoration: underline;
    margin: 0 var(--spacing-sm);
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: var(--primary-dark);
}

/* Error and Success Messages */
.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

input.error, select.error, textarea.error {
    border-color: var(--error-color);
}

.success-message {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
    text-align: center;
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 26, 26, 0.3);
}

/* Event Preview */
.event-preview-container {
    max-width: 900px;
    margin: 40px auto;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.event-banner-section {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
}

.event-banner {
    flex: 1;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.event-banner img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.event-banner:hover img {
    transform: scale(1.03);
}

.event-details-section {
    flex: 1;
}

.event-title-large {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.event-subtitle {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: var(--spacing-md);
}

.event-date-location {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--lighter-text);
    display: flex;
    align-items: center;
}

.event-date-location:before {
    content: '📅';
    margin-right: var(--spacing-sm);
    font-size: 20px;
}

.book-now-large {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.book-now-large:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.book-now-large:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.book-now-large:active {
    transform: translateY(-1px);
}

.event-description-section h2 {
    font-size: 22px;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.description-line {
    height: 1px;
    background: var(--border-color);
    margin-bottom: var(--spacing-lg);
}

/* Booking Page */
.event-container2 {
    display: flex;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 40px auto;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.event-details2 {
    flex: 2;
}

.event-title2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.event-subtitle2, .event-date2 {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: var(--spacing-sm);
}

.registration-section2 h3, .ticket-selection2 h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.price-options2 {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: 25px;
}

.price-btn2 {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.price-btn2.active, .price-btn2:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.price-btn2:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.ticket-options2 {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: 25px;
}

.ticket-btn2 {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-circle);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.ticket-btn2.active, .ticket-btn2:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.ticket-btn2:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.proceed-btn2 {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 16px;
    margin-top: 30px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

.proceed-btn2:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.proceed-btn2:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.proceed-btn2:active {
    transform: translateY(-1px);
}

.event-poster2 {
    flex: 1;
    text-align: center;
}

.event-poster2 img {
    max-width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.event-poster2 img:hover {
    transform: scale(1.03);
}

/* Payment Page */
.payment-container3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 40px auto;
    padding: var(--spacing-lg);
    gap: 40px;
    border-radius: var(--border-radius-md);
}

.order-summary3 {
    flex: 1;
    max-width: 60%;
    padding: var(--spacing-xl);
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.event-header3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.event-details3 {
    text-align: left;
}

.event-title3 {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.event-info3 {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.event-date3 {
    font-size: 16px;
    color: var(--lighter-text);
    margin-bottom: 0;
}

.divider3 {
    border: 1px solid var(--border-color);
    margin: 25px 0;
}

.summary-section3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.summary-details3 {
    flex: 1;
    text-align: left;
}
.summary-details3 h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.summary-details3 p {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
}

.summary-details3 p span:last-child {
    font-weight: bold;
    color: var(--text-color);
}

.payment-qr3 {
    text-align: center;
    padding: var(--spacing-md);
    border-left: 1px solid var(--border-color);
    margin-left: var(--spacing-lg);
}

.payment-qr3 img {
    width: 150px;
    height: 150px;
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: transform 0.3s ease;
}

.payment-qr3 img:hover {
    transform: scale(1.05);
}

.payment-qr3 p {
    font-size: 16px;
    color: var(--text-color);
    font-weight: bold;
}

.payment-confirm-btn3 {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    cursor: pointer;
    width: 35%;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    margin-top: var(--spacing-lg);
}

.payment-confirm-btn3:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.payment-confirm-btn3:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.payment-confirm-btn3:active {
    transform: translateY(-1px);
}

.payment-confirm-btn3:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.event-banner3 {
    flex: 1;
    max-width: 40%;
    text-align: center;
}

.event-banner3 img {
    width: 88%;
    max-width: 400px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.event-banner3 img:hover {
    transform: scale(1.03);
}

/* Confirmation Page */
.confirmation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.confirmation-card {
    max-width: 500px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.confirmation-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--success-color);
}

.confirmation-card h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--success-color);
}

.confirmation-card p {
    margin-bottom: 15px;
    color: var(--light-text);
}

#booking-reference {
    font-size: 16px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin: 20px 0;
    border: 1px dashed var(--border-color);
}

#booking-reference strong {
    color: var(--primary-color);
}

.home-button {
    display: inline-block;
    background: #333;
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-lg);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

.home-button:hover {
    background: #555;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.home-button:focus {
    outline: 2px solid #555;
    outline-offset: 2px;
}

.home-button:active {
    transform: translateY(-1px);
}

/* User Profile */
.user-profile-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: var(--spacing-lg);
}

.user-profile-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.user-profile-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--primary-color);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    z-index: 0;
}

.user-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-circle);
    object-fit: cover;
    margin-bottom: var(--spacing-lg);
    border: 5px solid white;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.user-profile-pic:hover {
    transform: scale(1.05);
}

.user-profile-info {
    margin: var(--spacing-lg) 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.user-profile-info p {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    color: var(--text-color);
}

.user-profile-info p span:first-child {
    font-weight: bold;
    color: var(--light-text);
}

.logout-btn {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    margin-top: var(--spacing-lg);
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.logout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.logout-btn:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.logout-btn:active {
    transform: translateY(0);
}

.events-section h2 {
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-size: 24px;
}

/* Footer */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: #333;
    color: white;
    padding: 40px var(--spacing-lg);
    margin-top: 40px;
}

.footer-container > div {
    flex: 1;
    min-width: 250px;
    margin: var(--spacing-sm);
}

.footer-container h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-container h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-container ul {
    list-style: none;
}

.footer-container ul li {
    margin-bottom: 10px;
}

.footer-container ul li a {
    color: #ccc;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-container ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-container ul li a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Page Display */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--light-text);
    font-size: 16px;
}

.loading:after {
    content: ".";
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60% { content: "..."; }
    80%, 100% { content: ""; }
}

/* Spinner Animation for Processing */
.spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .event-container2, .payment-container3 {
        flex-direction: column;
    }

    .event-details2, .order-summary3, .event-banner3 {
        width: 100%;
        max-width: 100%;
    }

    .event-poster2 {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-lg);
    }

    .event-poster2 img {
        max-width: 80%;
    }
    
    .payment-qr3 {
        border-left: none;
        border-top: 1px solid var(--border-color);
        margin-left: 0;
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
    }
    
    .summary-section3 {
        flex-direction: column;
    }
    
    .payment-confirm-btn3 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: auto;
        background: #e0e0e0;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 0;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links li a {
        padding: 15px 20px;
        border-bottom: 1px solid #ccc;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .event-banner-section {
        flex-direction: column;
    }

    .event-banner, .event-details-section {
        width: 100%;
    }
    
    .event-banner {
        margin-bottom: var(--spacing-lg);
    }

    .footer-container {
        flex-direction: column;
        padding: 30px var(--spacing-lg);
    }
    
    .footer-container > div {
        margin: var(--spacing-sm) 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .event-title2 {
        font-size: 20px;
    }

    .event-subtitle2, .event-date2 {
        font-size: 14px;
    }

    .price-options2 {
        flex-direction: column;
    }
    
    .price-btn2 {
        width: 100%;
        margin-bottom: var(--spacing-xs);
    }
    
    .confirmation-card {
        padding: 20px 15px;
    }
    
    .confirmation-card h1 {
        font-size: 22px;
    }
    
    .user-profile-card {
        padding: 20px;
    }
    
    .user-profile-pic {
        width: 100px;
        height: 100px;
    }
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f0f0f0;
        --light-text: #ccc;
        --lighter-text: #aaa;
        --background-color: #121212;
        --card-background: #1e1e1e;
        --border-color: #333;
    }
    
    .navbar, .search-bar {
        background: #1e1e1e;
    }
    
    .search-bar input {
        color: var(--text-color);
    }
    
    .nav-links {
        background: #2a2a2a;
    }
    
    .hamburger span {
        background: var(--text-color);
    }
    
    .event-card, .form-container, .event-preview-container, 
    .event-container2, .order-summary3, .confirmation-card,
    .user-profile-card {
        background: var(--card-background);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .description-line, .divider3 {
        background: var(--border-color);
    }
    
    #booking-reference {
        background: #2a2a2a;
    }
    
    .alert-success {
        background-color: #0a3622;
        color: #8fd6a7;
        border-color: #0b5741;
    }
    
    .alert-danger {
        background-color: #3c0d14;
        color: #ea868f;
        border-color: #58151c;
    }
    
    .alert-warning {
        background-color: #332701;
        color: #ffda6a;
        border-color: #664d03;
    }
    
    .alert-info {
        background-color: #032830;
        color: #6edff6;
        border-color: #055160;
    }
    
    /* Invert QR code for better visibility */
    .payment-qr3 img {
        filter: invert(1);
    }
}

/* Print Styles */
@media print {
    .navbar, .nav-links, .footer-container, .search-bar, 
    .hamburger, .book-now, .book-now-large, .proceed-btn2,
    .payment-confirm-btn3, .home-button, .logout-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container, .event-preview-container, .event-container2,
    .payment-container3, .confirmation-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    
    .confirmation-card {
        page-break-inside: avoid;
    }
    
    .event-banner img, .event-poster2 img, .event-banner3 img {
        max-width: 50%;
    }
    
    #booking-reference {
        border: 1px solid black;
        padding: 10px;
        margin: 20px 0;
    }
}
