/* ==============================================================
   STYLE APLIKASI UNDIAN DOORPRIZE SPEKTAKULER
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Orbitron:wght@600;800;900&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.4);
    --dark-bg: #0b0f19;
    --card-bg: #111827;
    --card-border: #1f2937;
    --text-muted: #9ca3af;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Custom */
.navbar-custom {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.15);
}

.navbar-brand-custom {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fbbf24 0%, #f43f5e 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: #94a3b8 !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.btn-lottery-nav {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}
.nav-link.btn-lottery-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Dashboard Cards */
.stat-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Doorprize Stage Arena */
.stage-container {
    background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 60%, #030712 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.stage-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

/* Slot Roller Box */
.slot-machine-box {
    background: #020617;
    border: 3px solid #f59e0b;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.25), inset 0 0 25px rgba(0, 0, 0, 0.8);
    padding: 30px 20px;
    position: relative;
    z-index: 2;
}

.digit-reel {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: #fef08a;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.7), 0 0 40px rgba(245, 158, 11, 0.4);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.candidate-name-reel {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.candidate-dept-reel {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Big Button Roll */
.btn-roll-huge {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
    color: #ffffff;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 900;
    padding: 16px 45px;
    border-radius: 50px;
    border: none;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.5), inset 0 -4px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-roll-huge:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.7), inset 0 -4px 0 rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-roll-huge:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.4);
}

.btn-roll-huge:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(40%);
}

/* Winner Card in Modal / Display */
.winner-card-celebrate {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    border: 2px solid #fbbf24;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35);
    text-align: center;
    color: #ffffff;
}

.winner-badge-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fef08a;
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 6px 24px;
    border-radius: 12px;
    border: 1px solid rgba(254, 240, 138, 0.3);
}

/* Printable Coupon Style */
.coupon-ticket {
    border: 2px dashed #94a3b8;
    border-radius: 14px;
    background: #ffffff;
    padding: 16px 20px;
    position: relative;
    page-break-inside: avoid;
}

.coupon-ticket::before, .coupon-ticket::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f1f5f9;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.coupon-ticket::before { left: -11px; }
.coupon-ticket::after { right: -11px; }

/* Table Styling */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-custom tr {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.table-custom td, .table-custom th {
    vertical-align: middle;
    padding: 14px 18px;
}

.table-custom tr td:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.table-custom tr td:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }

/* Category Pills */
.badge-grand-prize { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); color: #fff; }
.badge-hadiah-utama { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff; }
.badge-hadiah-kedua { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #fff; }
.badge-hadiah-ketiga { background: linear-gradient(135deg, #10b981 0%, #047857 100%); color: #fff; }
.badge-hadiah-hiburan { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); color: #fff; }
.badge-sponsor { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); color: #fff; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .digit-reel { font-size: 2.2rem; min-height: 70px; }
    .btn-roll-huge { width: 100%; }
}
