body {
    font-family: 'Inter', sans-serif;
    background: url('images/background.jpeg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

h1, h2 {
    color: #900b07;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

h1 {
    color: #900b07;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

input, button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

input:focus {
    border-color: #2a6ebd;
    outline: none;
}

button {
    background-color: #900b07;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #b60d08;
}

a {
    color: #2a6ebd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.center {
    text-align: center;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px;
    box-sizing: border-box;
}

.ticket-number {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    background: #900b07;
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.button-link {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #991b1b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.button-link:hover {
    background-color: #7f1d1d;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    color: #000;
    table-layout: auto;
    word-wrap: break-word;
    min-width: 600px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
    word-break: break-word;
    white-space: nowrap;
}

th {
    background-color: #f2f2f2;
    color: #222;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* DataTables UI fixes */
.dataTables_info,
.dt-buttons,
.dataTables_filter {
    color: #000 !important;
}

.dataTables_filter input {
    width: 200px;
    max-width: 100%;
}

@media (max-width: 480px) {
    form {
        max-width: 90%;
        padding: 24px;
        font-size: 1.05rem;
    }

    h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        padding: 0 10px;
    }

    input, button {
        padding: 14px;
        font-size: 1rem;
    }

    .container {
        margin-top: 0;
    }
}
.ticket-print-list {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ticket-print-list .ticket-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    background: #900b07;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
@media print {
    body {
        background: white;
        color: #000;
    }

    .overlay, .container {
        all: unset;
    }

    .ticket-number {
        background: #000;
        color: #fff;
        page-break-inside: avoid;
    }

    button, .button-link, a, nav {
        display: none !important;
    }
}

input, select {
    color: #000; /* black text for readability */
    background-color: #fff;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    color: #000;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    width: 100%;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23900b07' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    cursor: pointer;
}

select:focus {
    border-color: #2a6ebd;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(42, 110, 189, 0.25);
}
.card-box {
    background: rgba(255, 255, 255, 0.96);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    color: #000;
    width: 100%;
    max-width: 1000px;
    min-height: 70vh;
    box-sizing: border-box;
}


.fixed-box {
    width: 90vw;
    max-width: 1100px;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-box {
    background: rgba(255, 255, 255, 0.96);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    color: #000;
    width: 100%;
    max-width: 1000px;
    min-height: 70vh;
    box-sizing: border-box;
}

.filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

select {
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
}

#clearFilters {
    background-color: #900b07;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    margin-bottom: 20px;
    cursor: pointer;
}

#clearFilters:hover {
    background-color: #b60d08;
}

/* Navbar Styling */
.navbar {
    background-color: #900b07;
    padding: 12px 20px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.navbar-links a:hover {
    text-decoration: underline;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .navbar-links.show {
        display: flex;
    }

    .navbar-links a {
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        width: 100%;
    }

    .hamburger {
        display: block;
        margin-left: auto;
        font-size: 1.8rem;
    }
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

/* NAVBAR STRUCTURE */
.navbar {
    background-color: #900b07;
    color: white;
    padding: 12px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Slide-out menu for mobile */
.mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #900b07;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.mobile-menu.show {
    display: flex;
    max-height: 200px;
    opacity: 1;
}

.mobile-menu a {
    color: white;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu a:hover {
    background-color: #7f1d1d;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-links {
        display: none;
    }
}

.stripe-placeholder {
    margin-top: 20px;
    text-align: center;
}

.placeholder-box {
    border: 2px dashed #ccc;
    padding: 20px;
    margin: 10px auto;
    border-radius: 8px;
    background: #f8f8f8;
    color: #666;
    font-style: italic;
    max-width: 300px;
}
.qr-card.landscape {
    width: 3in;
    height: 2in;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.2in;
    box-sizing: border-box;
}

.qr-image {
    width: 1.5in;
    height: 1.5in;
    margin-bottom: 0.2in;
}

.text-section {
    text-align: center;
}

.child-name {
    font-size: 1.2em;
    font-weight: bold;
}

.teacher-name {
    font-size: 0.9em;
    color: #333;
}

.drop-zone.highlight {
    background: #e9f5ff;
    border-color: #007bff;
}