:root {
    --primary-color: #f59e0b;
    /* Amber 500 */
    --secondary-color: #d97706;
    /* Amber 600 */
    --accent-color: #fbbf24;
    /* Amber 400 */
    --background-start: #f1f5f9;
    /* Slate 100 */
    --background-end: #cbd5e1;
    /* Slate 300 */
    --text-color: #1e293b;
    /* Slate 800 */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.05);
    --input-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

h1,
h2 {
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    /* Dark text for light mode */
}

h1 span,
h2 span {
    color: var(--primary-color);
    /* Highlight if needed */
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #475569;
    /* Slate 600 */
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: var(--input-bg);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

button:hover {
    opacity: 0.95;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

button:active {
    transform: translateY(1px);
}

button.secondary {
    background: white;
    border: 1px solid #cbd5e1;
    margin-top: 10px;
    color: #64748b;
    text-shadow: none;
}

button.secondary:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* Utils */
.nav-header {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-header img {
    max-height: 50px;
    /* Restrained height */
    width: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.preview-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid var(--glass-border);
}

.ticket-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-info {
    font-size: 0.9rem;
}

.ticket-amount {
    font-weight: bold;
    color: #4ade80;
}

/* Loader */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Floating Action Button for Camera */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    border: none;
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1e293b;
    padding: 24px;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.text-btn:hover {
    text-decoration: underline;
}

/* Ticket items override for light theme */
.ticket-item {
    background: #f8fafc;
    /* Very light slate */
    border: 1px solid #e2e8f0;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ticket-amount {
    color: #16a34a;
    /* Green 600 */
}

/* Modal content Override */
.modal-content {
    background: #ffffff;
    color: #0f172a;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Nav links need to be visible on light bg */
.nav-header a {
    color: #475569 !important;
    transition: color 0.2s;
}

.nav-header a:hover {
    color: var(--primary-color) !important;
}

/* Status badges for light theme */
/* Card Item for Lists (Light Mode) */
.card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Ensure tables are readable */
table {
    color: #334155 !important;
}

th {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

td {
    border-bottom: 1px solid #f1f5f9 !important;
}