/* RESET & BASICS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* CONTAINER - Mobile First Centering */
.container {
    max-width: 600px; /* Limits width on big screens */
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* HEADER */
header {
    margin-bottom: 30px;
}

.flyer {
    width: 100%;
    max-height: 300px;
    object-fit: contain; /* Keeps image aspect ratio */
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-title {
    color: #0a6c3d; /* Updated Green */
    font-size: 2rem;
    font-weight: 900; /* Very Bold */
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: #555;
}

/* FORM STYLING */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #0a6c3d;
}

input, select {
    width: 100%;
    padding: 15px;
    font-size: 16px; /* Prevents zoom on iPhone */
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #0a6c3d;
}

/* BUTTONS */
.pay-btn {
    width: 100%;
    padding: 18px;
    background-color: #0a6c3d;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(10, 108, 61, 0.3);
}

.pay-btn:active {
    transform: scale(0.98);
}

/* SUCCESS SECTION */
.hidden {
    display: none;
}

.success-card {
    background-color: #e8f5e9;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #0a6c3d;
}

.success-card h2 {
    color: #0a6c3d;
    margin-bottom: 15px;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 20px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

/* ADMIN PANEL STYLES */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9rem;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #0a6c3d;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.loading {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

/* Mobile Responsive Table */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr { display: block; }
    
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    
    tr { border: 1px solid #ccc; margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
    
    td { border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 40%; text-align: right; }
    
    td:before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #0a6c3d;
        content: attr(data-label);
    }
}

/* ADMIN LOGIN & DASHBOARD EXTRAS */
.login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.stat-card {
    background: #0a6c3d;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.pdf-btn {
    background-color: #d32f2f; /* Red for PDF */
    margin-bottom: 20px;
    width: auto;
    display: inline-block;
}

.delete-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.delete-btn:hover {
    background-color: #cc0000;
}

.settings-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 1px solid #eee;
}