:root {
    --primary: #331a5c;
    --primary-light: #4a2a7a;
    --primary-dark: #251244;
    --accent: #ff6b35;
    --text: #1a1a1a;
    --text-light: #666;
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 80px;
}


/* Header Styles */
.header {
    background-color: #331a5c;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.logo_con{
    width: 120px;
    height: 40px;
    background-color: #331a5c;
    display: flex;
    justify-content: center;
    border-radius: 10px;
}
.logo{
    width: 120px;
    height: 40px;
    object-fit: cover;
}

.location-text {
    font-size: 14px;
    color: #6b7280;
}

.location-value {
    font-weight: 600;
    color: #1f2937;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 26px;
}






.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: #331a5c;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color:white;
    min-width: 160px;
    box-shadow: var(--shadow);
    border-radius: 5px;
    z-index: 1;
    margin-top: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}


.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #10b981;
    cursor: pointer;
    object-fit: cover;
}




/* Main Content */
.main-content {
    margin: 2rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ticket Selection Layout */
.ticket-selection-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* Selected Ticket Info */
.selected-ticket-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.selected-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.selected-ticket-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.selected-ticket-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.selected-ticket-description {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-label {
    font-weight: 600;
    color: var(--primary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
}

.quantity-display {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.price-summary {
    background: var(--background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.price-total {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.proceed-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.5rem;
}

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

/* Event Summary */
.event-summary-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.event-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-summary-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.event-summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.event-summary-icon {
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Payment Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.payment-modal {
    background: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .payment-modal {
    transform: translateY(0);
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.order-summary {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text);
}

.form-input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.confirm-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.confirm-btn:hover {
    background: var(--primary-light);
}

.cancel-btn {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.cancel-btn:hover {
    background: var(--background);
}



/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn {
        display: block;
    }

    .ticket-selection-layout {
        grid-template-columns: 1fr;
    }

    .selected-ticket-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

}

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

    .page-title {
        font-size: 1.75rem;
    }

    .selected-ticket-card,
    .event-summary-card {
        padding: 1.5rem;
    }

    .selected-ticket-name {
        font-size: 1.25rem;
    }

    .selected-ticket-price {
        font-size: 1.5rem;
    }

    .payment-actions {
        flex-direction: column;
    }
}










/* Messages/Alerts Styling */
.messages-container {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: between;
    border: 2px solid transparent;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-debug {
    background: linear-gradient(135deg, #d6d8d9, #c6c8ca);
    border-color: #6c757d;
    color: #383d41;
}

.close-alert {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-alert:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.alert-success .close-alert {
    color: #155724;
}

.alert-error .close-alert {
    color: #721c24;
}

.alert-warning .close-alert {
    color: #856404;
}

.alert-info .close-alert {
    color: #0c5460;
}

.alert-debug .close-alert {
    color: #383d41;
}

/* Alert icons */
.alert::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 12px;
    font-size: 1.2rem;
}

.alert-success::before {
    content: "\f058"; /* check-circle */
}

.alert-error::before {
    content: "\f057"; /* times-circle */
}

.alert-warning::before {
    content: "\f071"; /* exclamation-triangle */
}

.alert-info::before {
    content: "\f05a"; /* info-circle */
}

.alert-debug::before {
    content: "\f188"; /* bug */
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auto-hide animation (optional) */
.alert.auto-hide {
    animation: slideOut 0.3s ease-in 5s forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .alert::before {
        font-size: 1rem;
        margin-right: 8px;
    }
    
    .close-alert {
        font-size: 1.25rem;
        width: 25px;
        height: 25px;
    }
}

/* Additional utility classes for message positioning */
.messages-top {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
}

.messages-top .alert {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Toast-style messages */
.alert.toast {
    min-width: 300px;
    max-width: 400px;
    margin: 0 auto;
}

/* Progress bar for auto-dismiss (optional) */
.alert.auto-dismiss {
    overflow: hidden;
}

.alert.auto-dismiss::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}