:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ff1a1a;
    --accent-color: #f0f0f0;
    --dark-accent: #333333;
    --light-accent: #999999;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Special Elite', cursive;
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333333' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--accent-color);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-family: 'Rubik Dirt', cursive;
    font-size: 2rem;
    color: var(--secondary-color);
    text-shadow: var(--text-shadow);
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background-color: var(--dark-accent);
    color: var(--accent-color);
    border: 2px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    font-family: 'Special Elite', cursive;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Main Content Styles */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-family: 'Sedgwick Ave Display', cursive;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: var(--text-shadow);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.show-card {
    background-color: var(--dark-accent);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--light-accent);
}

.show-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.show-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.show-info {
    padding: 1.5rem;
}

.show-band {
    font-family: 'Rubik Dirt', cursive;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.show-date {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.buy-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Special Elite', cursive;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn:hover {
    background-color: #d10000;
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--dark-accent);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.admin-panel-content, .lists-modal-content {
    max-width: 900px;
}

.close-btn {
    color: var(--light-accent);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--secondary-color);
}

h3 {
    font-family: 'Sedgwick Ave Display', cursive;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-accent);
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-radius: 4px;
    font-family: 'Special Elite', cursive;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-submit {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Special Elite', cursive;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #d10000;
    transform: scale(1.02);
}

.btn-cancel {
    background-color: var(--light-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Special Elite', cursive;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cancel:hover {
    background-color: #666;
}

.form-buttons {
    display: flex;
    gap: 1rem;
}

/* Show Details in Purchase Modal */
#show-details {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-accent);
}

#show-details img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 2px solid var(--secondary-color);
}

/* Payment Details */
.payment-info {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
    border: 1px solid var(--light-accent);
}

/* Ticket Styling */
#ticket-container {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.ticket {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ticket-header {
    font-family: 'Rubik Dirt', cursive;
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ticket-qr {
    margin: 1rem auto;
}

.ticket-qr img {
    max-width: 200px;
    border: 4px solid white;
    border-radius: 4px;
}

/* Admin Panel Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-accent);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: 1px solid var(--light-accent);
    padding: 0.5rem 1rem;
    font-family: 'Special Elite', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px 4px 0 0;
    flex: 1;
    text-align: center;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Shows Management */
#shows-list {
    margin-top: 1.5rem;
}

.show-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid var(--light-accent);
}

.show-item-info {
    flex: 1;
}

.show-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit, .btn-delete {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #4a90e2;
    color: white;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-action {
    background-color: var(--dark-accent);
    color: var(--accent-color);
    border: 1px solid var(--secondary-color);
    padding: 0.75rem 1rem;
    font-family: 'Special Elite', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.btn-action:hover {
    background-color: var(--secondary-color);
}

/* Stats Styling */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chart-container {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--light-accent);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--light-accent);
}

.stat-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Lists and Attendance */
.filter-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lists-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.attendee-list-container {
    overflow-x: auto;
}

#attendee-list {
    width: 100%;
    border-collapse: collapse;
}

#attendee-list th, #attendee-list td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-accent);
}

#attendee-list th {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
}

#attendee-list tr:hover {
    background-color: rgba(255, 26, 26, 0.1);
}

.btn-attendance {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.btn-present {
    background-color: #2ecc71;
    color: white;
}

.btn-absent {
    background-color: #e74c3c;
    color: white;
}

.btn-scan {
    background-color: #4a90e2;
    color: white;
}

/* QR Scanner */
#qr-scanner-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#qr-video {
    width: 100%;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scanner-region {
    width: 70%;
    height: 70%;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    position: relative;
}

.scanner-region::before, .scanner-region::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--secondary-color);
    border-style: solid;
}

.scanner-region::before {
    top: -5px;
    left: -5px;
    border-width: 3px 0 0 3px;
}

.scanner-region::after {
    bottom: -5px;
    right: -5px;
    border-width: 0 3px 3px 0;
}

#scan-result {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .filter-section, .lists-actions {
        grid-template-columns: 1fr;
    }
    
    #attendee-list {
        font-size: 0.9rem;
    }
    
    .tab-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }
    
    .shows-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    #attendee-list th, #attendee-list td {
        padding: 0.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

