@font-face {
    font-family: 'Panton';
    src: url('assets/fonts/Panton.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Panton', sans-serif;
}

body {
    background-color: #000;
    color: #333;
    overflow-x: hidden;
}

.fireworks-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a23;
    background-image: 
        radial-gradient(circle at 15% 50%, #5a0a78, transparent 30%),
        radial-gradient(circle at 85% 60%, #780a5a, transparent 30%),
        radial-gradient(circle at 50% 90%, #0a5a78, transparent 40%);
}

.fireworks-bg::before,
.fireworks-bg::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100px;
    height: 100vh;
    background: linear-gradient(
        to top,
        rgba(255, 229, 100, 0.3) 0%,
        rgba(255, 229, 100, 0) 70%
    );
    transform-origin: bottom center;
    animation: sweep 10s linear infinite;
}

.fireworks-bg::after {
    width: 80px;
    background: linear-gradient(
        to top,
        rgba(173, 216, 230, 0.3) 0%,
        rgba(173, 216, 230, 0) 70%
    );
    animation: sweep 12s linear infinite;
    animation-delay: -3s;
}

@keyframes sweep {
    0% {
        transform: translateX(-50%) rotate(-45deg);
    }
    50% {
        transform: translateX(-50%) rotate(45deg);
    }
    100% {
        transform: translateX(-50%) rotate(-45deg);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    animation: fadeIn 0.5s 0.5s forwards;
    z-index: 1000;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        visibility: visible;
    }
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    animation: modalPop 0.3s 0.5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: max-width 0.3s ease-in-out;
}

@keyframes modalPop {
    to {
        transform: scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.logo-modal {
    max-height: 50px;
    width: auto;
    margin-bottom: 10px;
}

.modal-content h2 {
    text-align: center;
    color: #8c0000;
    margin-bottom: 16px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #8c0000;
    box-shadow: 0 0 0 2px rgba(140, 0, 0, 0.1);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    background-color: #fff !important;
    -webkit-text-fill-color: #333 !important;
}

.form-group-radio {
    margin-bottom: 16px;
}

.form-group-radio > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
}

.radio-options-container {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #8c0000;
    width: 1.2em;
    height: 1.2em;
}

.radio-option label {
    font-weight: normal;
    color: #333;
    margin-bottom: 0;
}

.form-row {
    margin-bottom: 0;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #34b95e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #1f863f;
}

.admin-container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.admin-container h1 {
    color: #8c0000;
    margin-bottom: 20px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background-color: #8c0000;
    color: white;
}

.admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.admin-table .si { color: green; font-weight: bold; }
.admin-table .no { color: red; font-weight: bold; }

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    color: #8c0000;
    margin-bottom: 24px;
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container .btn-submit {
    margin-top: 10px;
}

.error-msg {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}


@media (min-width: 768px) {
    .modal-content {
        max-width: 800px;
    }

    .modal-content h2 {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .form-row {
        display: flex;
        gap: 20px;
    }

    .form-row > .form-group,
    .form-row > .form-group-radio {
        flex: 1;
        min-width: 0;
    }

    .form-group-radio {
        background-color: #f9f9f9;
        padding: 12px;
        border-radius: 8px;
    }
}