@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-elevated: #1a1a24;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --primary: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --success: #10b981;
    --warning: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo img {
    max-width: 300px;
    height: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 1;
}

/* Card */
.card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-light);
}

/* Typography */
h2 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

/* Package Info */
.package-info {
    background: var(--bg-elevated);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.package-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.package-item:last-child {
    border-bottom: none;
}

.package-item span {
    color: var(--text-secondary);
    font-size: 15px;
}

.package-item strong {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 16px;
}

/* Form */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
}

input::placeholder {
    color: var(--text-muted);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    background: var(--bg-elevated);
    border-radius: 40px;
    border: 1.5px solid var(--border);
    transition: all 0.2s ease;
    margin: 0;
}

.radio-label:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.radio-label input {
    width: auto;
    margin: 0;
    accent-color: var(--primary);
}

.radio-label span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Extra Person Control */
.extra-person-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-number {
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-number:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

#extra_person {
    width: 80px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.help-text {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Total Price */
.total-price {
    background: var(--gradient);
    padding: 20px;
    border-radius: 18px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

/* QRIS Section */
.qris-section {
    background: var(--bg-elevated);
    border-radius: 20px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
    border: 1px solid var(--border);
}

.qris-section p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.qris-section img {
    max-width: 200px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    margin: 16px auto;
    display: block;
}

.info-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.info-text strong {
    color: var(--primary-light);
    font-size: 16px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Utility */
.hidden {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 20px 16px;
    }
    
    .card {
        padding: 24px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .total-price {
        font-size: 24px;
        padding: 16px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-label {
        width: 100%;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* ============================================ */
/* RESULT AREA STYLES - NOMOR ANTRIAN JELAS */
/* ============================================ */

.queue-result {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    margin-top: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Result Header */
.result-header {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-bottom: 1px solid var(--border);
}

.result-logo {
    max-width: 160px;
    margin-bottom: 12px;
}

.result-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.result-header p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Result Status */
.result-status {
    text-align: center;
    padding: 20px;
    background: rgba(16, 185, 129, 0.08);
    border-bottom: 1px solid var(--border);
}

.status-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.result-status p {
    font-size: 18px;
    font-weight: 600;
    color: #34d399;
}

/* QUEUE DISPLAY - NOMOR ANTRIAN YANG JELAS */
.queue-display {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-bottom: 1px solid var(--border);
}

.queue-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

/* NOMOR ANTRIAN - DENGAN WARLA TERANG DAN KONTRASTING */
.queue-number {
    font-size: 80px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 8px;
    margin: 10px 0;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
}

/* Alternative jika ingin gradient */
.queue-number-gradient {
    font-size: 80px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    text-shadow: none;
}

/* Customer & Order Details */
.customer-details,
.order-details {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.customer-details h4,
.order-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.total-row {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--border);
    border-bottom: none;
}

.total-row .detail-label {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 16px;
}

.total-amount {
    font-size: 20px;
    font-weight: 800;
    color: #34d399;
}

/* Payment Method Badges */
.payment-method-qris {
    color: var(--primary-light);
    font-weight: 600;
}

.payment-method-cod {
    color: #fbbf24;
    font-weight: 600;
}

/* Status Badges in Result */
.detail-value[class*="status-"] {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-menunggu-verifikasi,
.status-pending-bayar-di-tempat {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-terverifikasi,
.status-lunas {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Result Footer */
.result-footer {
    padding: 20px 24px;
    text-align: center;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.result-footer p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.result-footer .note {
    color: #fbbf24;
    font-size: 11px;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-screenshot,
.btn-new {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    border: none;
}

.btn-screenshot {
    background: var(--bg-elevated);
    border: 1.5px solid var(--primary);
    color: var(--primary-light);
}

.btn-screenshot:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-new {
    background: var(--gradient);
    color: white;
}

.btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Screenshot Mode */
.queue-result.screenshot-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 500px;
    margin: 0;
    z-index: 9999;
    border-radius: 0;
}

.queue-result.screenshot-mode .action-buttons {
    display: none;
}

/* Responsive */
@media (max-width: 640px) {
    .queue-number {
        font-size: 56px;
        letter-spacing: 4px;
    }
    
    .customer-details,
    .order-details {
        padding: 16px 20px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-screenshot,
    .btn-new {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .action-buttons,
    .btn-submit,
    .footer {
        display: none;
    }
    
    .queue-number {
        color: #8b5cf6 !important;
        -webkit-text-fill-color: #8b5cf6 !important;
    }
}