/* GENERAL RESET */
body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    margin: 0;
    padding: 0;
}

/* CENTERED CARD BOX (used in login + user dashboard) */
.card {
    width: 380px;
    margin: 60px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #009933;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* HEADINGS */
h2, h3 {
    text-align: center;
    color: #006600;
    margin-bottom: 15px;
}

/* INPUT FIELDS */
input, select {
    width: 95%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 15px;
}

/* BUTTONS */
button, .btn {
    background: #009933;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

button:hover, .btn:hover {
    background: #007a29;
}

/* TABLE STYLING */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}

table th {
    background: #009933;
    color: white;
    padding: 10px;
}

table td {
    padding: 10px;
    border: 1px solid #ccc;
}

/* ACTION BUTTONS */
.btn-edit {
    background: #ffc107;
    color: black;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
}

/* TOP BAR */
.topbar {
    background: #009933;
    padding: 12px;
    color: white;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

/* LOGOUT LINK */
.logout {
    float: right;
    margin-right: 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.logout:hover {
    text-decoration: underline;
}
.header-logo {
    text-align: center;
    padding: 15px 0;
    background: transparent;
    border-bottom: 3px solid #009933;
}

.header-logo img {
    width: 90px;
    height: auto;
}

.header-logo h1 {
    margin: 10px 0 0 0;
    font-size: 20px;
    color: #006600;
    font-weight: bold;
}
.pagination {
    text-align: center;
    margin-top: 20px;
}

.page-btn {
    display: inline-block;
    padding: 8px 12px;
    margin: 3px;
    border: 1px solid #009933;
    color: #009933;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.page-btn:hover {
    background: #009933;
    color: white;
}

.page-btn.active {
    background: #009933;
    color: white;
}
@media (max-width: 600px) {

    .card {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }

    table {
        font-size: 14px;
    }

    table th, table td {
        padding: 6px;
    }

    .header-logo img {
        width: 70px;
    }

    .header-logo h1 {
        font-size: 16px;
    }

    .topbar {
        font-size: 16px;
        padding: 10px;
    }

    input, button {
        font-size: 14px;
    }
}
.card {
    width: 90%;
    max-width: 90%;
    margin: 15px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #009933;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.header-logo,
.topbar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.card table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
@media (max-width: 600px) {
    body {
        padding: 0;
        margin: 0;
    }

    .card {
        padding: 15px;
        margin: 10px;
        border-width: 2px;
    }

    input, button {
        width: 100%;
        font-size: 16px;
    }

    table th, table td {
        font-size: 14px;
        padding: 6px;
    }
}
.cards {
    width: 90%;
    max-width: 500px;
    margin: 15px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #009933;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.user-card {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95); /* semi-transparent white */
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    text-align: center;
    box-sizing: border-box;
}



.big-amount {
    font-size: 38px;
    font-weight: 900;
    color: #006600;
    margin: 10px 0;
}

.ticket-box {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.trophy {
    font-size: 26px;
    color: #cc9900;
    margin: 0 5px;
}

.winner-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    background: #009933;
    color: white;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.footer-text {
    margin-top: 15px;
    font-size: 14px;
    color: #004d00;
    font-weight: bold;
}
@media (max-width: 600px) {
    .user-card {
        padding: 15px;
    }

    .big-amount {
        font-size: 32px;
    }

    .winner-btn {
        font-size: 16px;
        padding: 8px;
    }

    .footer-text {
        font-size: 13px;
    }
}
.user-card {
    border: 3px solid #cc9900;
}
.emoji-bounce {
    display: inline-block;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.sparkle-section {
    position: relative;
    overflow: hidden;
}

/* Container for glitter */
.glitter-section {
    position: relative;
    overflow: hidden;
}

/* Gold glitter particles */
.glitter-section::before,
.glitter-section::after {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 150%;
    pointer-events: none;

    background-image:
        radial-gradient(circle, rgba(255,215,0,0.9) 2px, transparent 3px),
        radial-gradient(circle, rgba(255,215,0,0.6) 2px, transparent 3px),
        radial-gradient(circle, rgba(255,215,0,0.4) 2px, transparent 3px);

    background-size: 8px 8px, 10px 10px, 12px 12px;
    animation: glitterTrail 8s linear infinite;
    opacity: 0.8;
}

.glitter-section::after {
    animation-duration: 12s;
    opacity: 0.5;
}

@keyframes glitterTrail {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-40px) translateX(10px);
    }
    100% {
        transform: translateY(-80px) translateX(-10px);
    }
}
