* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* UTILITY CLASSES */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding: 0 1rem; }
.py-2 { padding: 0.5rem 0; }
.py-3 { padding: 0.75rem 0; }
.py-4 { padding: 1rem 0; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,0.1); }

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes emojiPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes ratingFloat {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.rating-btn {
    animation: ratingFloat 0.5s ease-out backwards;
}

.rating-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.rating-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.rating-btn:nth-child(3) {
    animation-delay: 0.3s;
}

.rating-btn:nth-child(4) {
    animation-delay: 0.4s;
}

.rating-btn > div:first-child {
    display: inline-block;
}

.rating-btn:hover > div:first-child {
    animation: emojiPulse 0.6s ease-in-out;
}

/* BUTTON STYLES */
button {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 10px 15px rgba(30, 64, 175, 0.2);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    background-color: #cbd5e1;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #6d28d9;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* INPUT STYLES */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

input::placeholder {
    color: var(--gray-400);
}

/* CARD STYLES */
.card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* HEADER STYLES */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

header h1 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    margin: 0;
}

header p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
}

/* LAYOUT */
.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-content {
    flex: 1;
    padding: 0 1rem 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-loket {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 1440px) {
    .grid-loket {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .grid-loket {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .grid-loket {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .grid-loket {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.loket-btn {
    aspect-ratio: 3 / 2;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.loket-btn:hover {
    border-color: var(--primary);
    background-color: #f0f7ff;
    box-shadow: 0 10px 15px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.loket-btn:active {
    transform: scale(0.95);
}

.loket-logo {
    width: 100%;
    height: 60%;
    object-fit: contain;
    flex-shrink: 0;
}

.loket-name {
    display: none;
}

.loket-number {
    font-size: 1.0rem;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.25rem;
}

/* FORM STYLES */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.form-option {
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

.form-option:hover {
    border-color: var(--primary);
    background-color: #f0f7ff;
}

.form-option.active {
    border-color: var(--primary);
    background-color: #dbeafe;
    color: var(--primary);
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.1);
}

/* RATING OPTIONS */
.rating-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .rating-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.rating-btn {
    padding: 1.5rem;
    border: none;
    border-radius: 1.5rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    min-height: 220px;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rating-btn svg {
    width: 64px;
    height: 64px;
}

.rating-4 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.rating-4:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

.rating-3 {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 2px solid #22c55e;
}

.rating-3:hover {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.3);
}

.rating-2 {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #92400e;
    border: 2px solid #f59e0b;
}

.rating-2:hover {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
}

.rating-1 {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #7f1d1d;
    border: 2px solid #ef4444;
}

.rating-1:hover {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

/* PROGRESS BAR */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.5s ease;
}

/* THANK YOU SCREEN */
.thank-you-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--success);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    color: white;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

.thank-you-overlay svg {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    animation: bounce 1s infinite;
}

.thank-you-overlay h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.thank-you-overlay p {
    font-size: 1.5rem;
    padding: 0 1rem;
}

/* ADMIN DASHBOARD */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    font-size: 1.875rem;
    font-weight: bold;
}

.dashboard-header p {
    opacity: 0.9;
}

.dashboard-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .dashboard-buttons {
        width: 100%;
    }

    .dashboard-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card.success {
    border-left-color: var(--success);
}

.stat-card.warning {
    border-left-color: var(--warning);
}

.stat-card h3 {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card p {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--gray-800);
}

/* TABLE STYLES */
.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 0 0 1.5rem 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--gray-100);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-300);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

tr:hover {
    background-color: var(--gray-50);
}

/* MODALS */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    animation: fadeIn 0.3s ease-in;
}

.modal {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease-out;
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-buttons button {
    flex: 1;
}

/* ALERT MESSAGE */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert.success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert.error {
    background-color: #fee2e2;
    color: #7f1d1d;
    border-left: 4px solid var(--danger);
}

.alert.warning {
    background-color: #fef3c7;
    color: #78350f;
    border-left: 4px solid var(--warning);
}

.alert.info {
    background-color: #dbeafe;
    color: #0c2d6b;
    border-left: 4px solid var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    body {
        font-size: 15px;
    }

    html, body {
        overflow-x: hidden;
    }

    header {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    header h1 {
        font-size: 1.375rem;
    }

    header p {
        font-size: 0.85rem;
    }

    .main-content {
        padding: 1.5rem 1rem 2rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .card {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .rating-btn {
        min-height: 180px;
        padding: 1.25rem;
    }

    .rating-grid {
        gap: 0.75rem;
        width: 100%;
    }

    .form-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .text-2xl { font-size: 1.375rem; }
}

@media (max-width: 768px) {
    html, body {
        font-size: 16px;
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    * {
        box-sizing: border-box;
    }

    header {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    header h1 {
        font-size: 1.5rem;
        font-weight: bold;
    }

    header p {
        font-size: 0.95rem;
    }

    .main-content {
        padding: 1rem 0.75rem 1.5rem 0.75rem;
        flex: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding: 0 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .card {
        padding: 1.25rem;
        border-radius: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .rating-btn {
        min-height: 160px;
        padding: 1rem;
        border-radius: 0.75rem;
        font-size: 1.1rem;
        gap: 0.75rem;
        width: 100%;
    }

    .rating-btn > div:first-child {
        font-size: 3rem;
    }

    .rating-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
    }

    .form-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
    }

    .form-option {
        padding: 0.85rem;
        font-size: 0.95rem;
        border-radius: 0.5rem;
        width: 100%;
    }

    .form-label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
        width: 100%;
    }

    .modal {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .text-2xl { 
        font-size: 1.5rem; 
    }

    .text-xl { 
        font-size: 1.25rem; 
    }

    .gap-2 { gap: 0.5rem; }
    .gap-3 { gap: 0.75rem; }
    .gap-4 { gap: 1rem; }
    .gap-6 { gap: 1.25rem; }

    .alert {
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    footer {
        padding: 1rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Grid Loket adjustments */
    .grid-loket {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .loket-btn {
        aspect-ratio: 3 / 2;
        padding: 0.6rem;
        gap: 0.4rem;
        width: 100%;
    }

    .loket-number {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .loket-logo {
        width: 100%;
        height: 50%;
    }

    /* Header adjustments */
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .dashboard-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
    }

    .dashboard-buttons .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        flex: 1;
        min-width: 140px;
    }

    /* Progress bar */
    .progress-bar {
        margin: 0.75rem 0;
        width: 100%;
        height: 10px;
    }

    /* Confirmation modal */
    .card > h2 {
        font-size: 1.5rem;
    }

    .card > p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    html, body {
        font-size: 15px;
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    * {
        box-sizing: border-box;
    }

    header {
        padding: 1rem 0.75rem;
        margin-bottom: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    header h1 {
        font-size: 1.3rem;
        margin: 0;
        font-weight: bold;
    }

    header p {
        font-size: 0.9rem;
        margin: 0;
    }

    .main-content {
        padding: 0.75rem 0.75rem 1rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding: 0 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .card {
        padding: 1rem;
        border-radius: 0.6rem;
        width: 100%;
        box-sizing: border-box;
    }

    .rating-btn {
        min-height: 140px;
        padding: 0.85rem;
        border-radius: 0.6rem;
        font-size: 1rem;
        gap: 0.5rem;
        width: 100%;
    }

    .rating-btn > div:first-child {
        font-size: 2.5rem;
    }

    .rating-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .form-options {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .form-option {
        padding: 0.75rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .form-group {
        margin-bottom: 0.85rem;
        width: 100%;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-height: 48px;
        width: auto;
    }

    .btn-lg {
        width: 100%;
        min-height: 48px;
        padding: 0.85rem 1.25rem;
        font-size: 1rem;
    }

    .text-2xl { 
        font-size: 1.25rem; 
    }

    .text-xl { 
        font-size: 1.1rem; 
    }

    .gap-2 { gap: 0.4rem; }
    .gap-3 { gap: 0.6rem; }
    .gap-4 { gap: 0.8rem; }
    .gap-6 { gap: 1rem; }

    footer {
        padding: 0.75rem;
        font-size: 0.85rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Header number box */
    .card > div[style*="text-align: center"] > div[style*="display: inline-flex"] {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    /* Modal improvements */
    .modal {
        width: 98%;
        max-height: 95vh;
        padding: 1rem;
        box-sizing: border-box;
    }

    .modal > h2 {
        font-size: 1.2rem;
    }

    .modal > p {
        font-size: 0.95rem;
    }

    /* Grid Loket adjustments */
    .grid-loket {
        gap: 0.6rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .loket-btn {
        aspect-ratio: 3 / 2;
        padding: 0.5rem;
        gap: 0.3rem;
        width: 100%;
    }

    .loket-number {
        font-size: 0.9rem;
    }

    .loket-logo {
        width: 100%;
        height: 50%;
    }

    /* Progress bar */
    .progress-bar {
        height: 10px;
    }
}

/* PRINT STYLES */
@media print {
    body {
        background: white;
    }

    .dashboard-buttons {
        display: none;
    }

    .card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }

    header {
        background: white;
        color: black;
        border-bottom: 2px solid black;
    }

    table {
        border-collapse: collapse;
    }

    th, td {
        border: 1px solid black;
    }
}

/* HIDDEN CLASS */
.hidden {
    display: none !important;
}

/* LOADING SPINNER */
.spinner {
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
/* ============================================
   ANIMATIONS FOR PAGE TRANSITIONS
   ============================================ */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide in from bottom */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from top */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation for loading */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer loading effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out forwards;
}

.animate-slide-down {
    animation: slideInDown 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 0.6s ease-out;
}

/* Stagger animation for list items */
.grid-loket > :nth-child(1) { animation: slideInUp 0.5s ease-out 0.05s forwards; opacity: 0; }
.grid-loket > :nth-child(2) { animation: slideInUp 0.5s ease-out 0.1s forwards; opacity: 0; }
.grid-loket > :nth-child(3) { animation: slideInUp 0.5s ease-out 0.15s forwards; opacity: 0; }
.grid-loket > :nth-child(4) { animation: slideInUp 0.5s ease-out 0.2s forwards; opacity: 0; }
.grid-loket > :nth-child(5) { animation: slideInUp 0.5s ease-out 0.25s forwards; opacity: 0; }
.grid-loket > :nth-child(6) { animation: slideInUp 0.5s ease-out 0.3s forwards; opacity: 0; }
.grid-loket > :nth-child(7) { animation: slideInUp 0.5s ease-out 0.35s forwards; opacity: 0; }
.grid-loket > :nth-child(8) { animation: slideInUp 0.5s ease-out 0.4s forwards; opacity: 0; }
.grid-loket > :nth-child(9) { animation: slideInUp 0.5s ease-out 0.45s forwards; opacity: 0; }
.grid-loket > :nth-child(n+10) { animation: slideInUp 0.5s ease-out 0.5s forwards; opacity: 0; }

/* Hover effects for interactive elements */
.grid-loket button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15) !important;
}

.rating-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary) !important;
}

.rating-btn.selected,
.rating-btn[data-selected="true"] {
    animation: scaleIn 0.3s ease-out;
}

.form-option:hover {
    transform: translateY(-2px);
}

/* ============================================
   LOADING SCREEN STYLES
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
    font-family: 'Segoe UI', 'Poppins', sans-serif;
}

/* ALERT STYLES */
.alert {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 0.6rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.4s ease-out;
    box-sizing: border-box;
    border: 2px solid;
}

.alert.info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #1e40af;
}

.alert.success {
    background-color: #dcfce7;
    color: #15803d;
    border-color: #15803d;
}

.alert.warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.alert.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

