/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Bojonegoro Color Variables */
:root {
    /* Official Bojonegoro Colors */
    --bojonegoro-blue: #1e3a8a;
    --bojonegoro-blue-light: #3b82f6;
    --bojonegoro-blue-dark: #1e40af;
    --bojonegoro-gold: #f59e0b;
    --bojonegoro-gold-light: #fbbf24;
    --bojonegoro-gold-dark: #d97706;
    --bojonegoro-red: #dc2626;
    --bojonegoro-red-light: #ef4444;
    --bojonegoro-green: #16a34a;
    --bojonegoro-green-light: #22c55e;
    
    /* Gradient combinations */
    --gradient-primary: linear-gradient(135deg, var(--bojonegoro-blue) 0%, var(--bojonegoro-blue-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--bojonegoro-gold) 0%, var(--bojonegoro-gold-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--bojonegoro-blue) 0%, var(--bojonegoro-gold) 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-fluid {
    width: 100%;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #333;
    text-align: center;
    font-size: 2.5em;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.header .subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1em;
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-link {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.4);
    background: var(--gradient-gold);
}

.nav-link.active {
    background: var(--gradient-accent);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.card-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 5px;
}

.card-subtitle {
    color: #666;
    font-size: 0.9em;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    margin: 5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, var(--bojonegoro-green), var(--bojonegoro-green-light));
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, var(--bojonegoro-red), var(--bojonegoro-red-light));
    color: white;
}

.btn-warning {
    background: var(--gradient-gold);
    color: white;
}

.btn-info {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 18px;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table thead {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875em;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1em;
    font-weight: 600;
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.7;
}

/* Drawing Area */
.drawing-container {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.drawing-wheel {
    width: 200px;
    height: 200px;
    border: 8px solid #fff;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff6b6b,
        #4ecdc4,
        #45b7d1,
        #96ceb4,
        #feca57,
        #ff9ff3,
        #54a0ff,
        #5f27cd
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.drawing-wheel::before {
    content: '🎯';
    position: absolute;
    top: -15px;
    font-size: 30px;
    z-index: 10;
}

.winner-display {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: bounce 0.6s ease-in-out;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.drawing-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    margin: 15px 0;
    backdrop-filter: blur(10px);
}

.prize-info {
    font-size: 1.3em;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Animations */
.spinning {
    animation: spin 0.5s linear infinite;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Confetti */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    animation: confetti-fall 3s linear infinite;
    z-index: 100;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Search */
.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 300px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: #17a2b8;
    color: #0c5460;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: bounceIn 0.3s ease-out;
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5em;
    color: #333;
}

/* Enhanced Modal Close Button */
.close {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    user-select: none;
}

.close:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    transform: scale(1.05);
}

.close:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

.close::before {
    content: "×";
    font-family: Arial, sans-serif;
    line-height: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.pagination .btn {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .modal-content {
        margin: 20px;
        width: auto;
    }
    
    .drawing-container {
        padding: 20px;
        min-height: 250px;
    }
    
    .winner-display {
        font-size: 1.8em;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    
    .card {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .drawing-wheel {
        width: 150px;
        height: 150px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: var(--bojonegoro-green);
    color: white;
}

.badge-warning {
    background-color: var(--bojonegoro-gold);
    color: #212529;
}

.badge-danger {
    background-color: var(--bojonegoro-red);
    color: white;
}

.badge-info {
    background-color: var(--bojonegoro-blue);
    color: white;
}

.badge-primary {
    background-color: var(--bojonegoro-blue);
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* Drawing/Undian Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.drawing-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawing-info {
    text-align: center;
    width: 100%;
}

.winner-animation {
    animation: fadeIn 0.8s ease-out, pulse 2s infinite;
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

/* CSS Custom Properties for consistent spacing */
:root {
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-xxl: 3rem;    /* 48px */
    
    --font-xs: 0.75rem;     /* 12px */
    --font-sm: 0.875rem;    /* 14px */
    --font-base: 1rem;      /* 16px */
    --font-lg: 1.125rem;    /* 18px */
    --font-xl: 1.25rem;     /* 20px */
    --font-xxl: 1.5rem;     /* 24px */
    --font-xxxl: 2rem;      /* 32px */
    
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Breakpoint Variables (for reference) */
/* 
Mobile: 320px - 767px
Tablet: 768px - 1023px  
Desktop: 1024px - 1199px
Large: 1200px+
*/

/* Utility Classes */

/* Display Utilities */
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }

/* Mobile Display Utilities */
@media (max-width: 767px) {
    .d-mobile-none { display: none !important; }
    .d-mobile-block { display: block !important; }
    .d-mobile-flex { display: flex !important; }
}

/* Tablet and up Display Utilities */
@media (min-width: 768px) {
    .d-tablet-none { display: none !important; }
    .d-tablet-block { display: block !important; }
    .d-tablet-flex { display: flex !important; }
}

/* Flex Utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.align-start { align-items: flex-start !important; }
.align-center { align-items: center !important; }
.align-end { align-items: flex-end !important; }
.align-stretch { align-items: stretch !important; }

/* Spacing Utilities */
.gap-xs { gap: var(--spacing-xs) !important; }
.gap-sm { gap: var(--spacing-sm) !important; }
.gap-md { gap: var(--spacing-md) !important; }
.gap-lg { gap: var(--spacing-lg) !important; }
.gap-xl { gap: var(--spacing-xl) !important; }

/* Margin Utilities */
.m-0 { margin: 0 !important; }
.m-xs { margin: var(--spacing-xs) !important; }
.m-sm { margin: var(--spacing-sm) !important; }
.m-md { margin: var(--spacing-md) !important; }
.m-lg { margin: var(--spacing-lg) !important; }
.m-xl { margin: var(--spacing-xl) !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--spacing-xs) !important; }
.mt-sm { margin-top: var(--spacing-sm) !important; }
.mt-md { margin-top: var(--spacing-md) !important; }
.mt-lg { margin-top: var(--spacing-lg) !important; }
.mt-xl { margin-top: var(--spacing-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--spacing-xs) !important; }
.mb-sm { margin-bottom: var(--spacing-sm) !important; }
.mb-md { margin-bottom: var(--spacing-md) !important; }
.mb-lg { margin-bottom: var(--spacing-lg) !important; }
.mb-xl { margin-bottom: var(--spacing-xl) !important; }

/* Padding Utilities */
.p-0 { padding: 0 !important; }
.p-xs { padding: var(--spacing-xs) !important; }
.p-sm { padding: var(--spacing-sm) !important; }
.p-md { padding: var(--spacing-md) !important; }
.p-lg { padding: var(--spacing-lg) !important; }
.p-xl { padding: var(--spacing-xl) !important; }

/* Width Utilities */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

/* Height Utilities */
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

/* Header Logo and Branding */
.header-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Ensure proper spacing with logo */
.header .d-flex.align-center {
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .header-logo {
        width: 45px;
        height: 45px;
    }
    
    .header h1 {
        font-size: 1.5em !important;
    }
    
    .header .subtitle {
        font-size: var(--font-xs);
    }
    
    .header .d-flex.align-center {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .header-logo {
        width: 35px;
        height: 35px;
    }
    
    .header h1 {
        font-size: 1.2em !important;
    }
    
    .header .d-flex.align-center {
        gap: var(--spacing-xs);
    }
}

/* Special styling for login page logo */
.login-header img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* User Info and Header Utilities */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-sm);
}

.welcome-text {
    color: #333;
    margin-right: var(--spacing-sm);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--bojonegoro-blue);
    color: var(--bojonegoro-blue);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: var(--font-sm);
}

.btn-outline:hover {
    background: var(--bojonegoro-blue);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        align-items: flex-end;
        gap: var(--spacing-sm);
    }
    
    .welcome-text {
        margin-right: 0;
        text-align: right;
        font-size: var(--font-xs);
    }
    
    .btn-outline {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* Text Utilities */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

.font-xs { font-size: var(--font-xs) !important; }
.font-sm { font-size: var(--font-sm) !important; }
.font-base { font-size: var(--font-base) !important; }
.font-lg { font-size: var(--font-lg) !important; }
.font-xl { font-size: var(--font-xl) !important; }
.font-xxl { font-size: var(--font-xxl) !important; }

.font-normal { font-weight: normal !important; }
.font-bold { font-weight: bold !important; }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-scroll { overflow: scroll !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* Position Utilities */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* Shadow Utilities */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Border Radius Utilities */
.rounded-none { border-radius: 0 !important; }
.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-xl { border-radius: var(--border-radius-xl) !important; }
.rounded-full { border-radius: 50% !important; }

/* ==========================================================================
   RESPONSIVE COMPONENT IMPROVEMENTS  
   ========================================================================== */

/* Enhanced responsive grid */
.responsive-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 768px) {
    .responsive-grid {
        gap: var(--spacing-lg);
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Enhanced responsive flex container */
.responsive-flex {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

@media (min-width: 768px) {
    .responsive-flex {
        gap: var(--spacing-md);
        flex-wrap: nowrap;
    }
}

/* Touch-friendly button sizing */
.btn-touch {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Responsive table wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

@media (min-width: 768px) {
    .table-responsive table {
        min-width: auto;
    }
}

/* ========================================
   MODERN UNDIAN LIVE STYLES
   ======================================== */

/* Modern Hero Section */
.undian-hero {
    background: linear-gradient(135deg, var(--bojonegoro-blue) 0%, var(--bojonegoro-blue-light) 50%, var(--bojonegoro-gold) 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.undian-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -30px) rotate(360deg); }
}

.undian-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.undian-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Modern Drawing Container */
.modern-drawing-container {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border-radius: 25px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 
        20px 20px 60px #d1d9e6,
        -20px -20px 60px #ffffff;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.drawing-stage {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.prize-display {
    background: linear-gradient(45deg, var(--bojonegoro-gold), #fbbf24);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.prize-display.show {
    transform: scale(1);
    animation: prizeGlow 2s infinite alternate;
}

@keyframes prizeGlow {
    0% { box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4); }
}

/* Modern Control Panel */
.control-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.control-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.control-group {
    flex: 1;
    min-width: 300px;
}

.modern-select {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 5px 5px 10px #e2e8f0, inset -5px -5px 10px #ffffff;
    width: 100%;
}

.modern-select:focus {
    border-color: var(--bojonegoro-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

/* Modern Buttons */
.btn-modern {
    background: linear-gradient(145deg, var(--bojonegoro-blue), var(--bojonegoro-blue-light));
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 15px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 20px rgba(30, 58, 138, 0.4);
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-modern.btn-gold {
    background: linear-gradient(145deg, var(--bojonegoro-gold), #fbbf24);
    box-shadow: 5px 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-modern.btn-gold:hover {
    box-shadow: 7px 7px 20px rgba(245, 158, 11, 0.4);
}

.btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

/* Animation Effects */
.lottery-ball {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.rolling-numbers {
    font-size: 4rem;
    font-weight: bold;
    color: var(--bojonegoro-blue);
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    animation: numberRoll 0.5s infinite;
}

@keyframes numberRoll {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(180deg); }
    100% { transform: rotateX(360deg); }
}

.winner-announcement {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
    animation: winnerGlow 1s ease-in-out;
}

@keyframes winnerGlow {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--bojonegoro-gold);
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti:nth-child(odd) {
    background: var(--bojonegoro-blue);
    animation-delay: -0.5s;
}

.confetti:nth-child(even) {
    background: #ff6b6b;
    animation-delay: -1s;
}

/* Stats Cards Modern */
.stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-modern {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 
        10px 10px 30px #e2e8f0,
        -10px -10px 30px #ffffff;
    transition: transform 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
}

.stat-icon-modern {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.stat-number-modern {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--bojonegoro-blue);
    margin: 10px 0;
}

.stat-label-modern {
    color: #64748b;
    font-weight: 500;
}

/* Loading Animation */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f4f6;
    border-top: 6px solid var(--bojonegoro-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse Animation for Waiting State */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Shake Animation for Errors */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .undian-title {
        font-size: 2rem;
    }
    
    .undian-subtitle {
        font-size: 1rem;
    }
    
    .control-row {
        flex-direction: column;
    }
    
    .control-group {
        min-width: 100%;
    }
    
    .modern-drawing-container {
        padding: 20px;
        min-height: 300px;
    }
    
    .rolling-numbers {
        font-size: 2.5rem;
    }
    
    .lottery-ball {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ========================================
   CORPORATE PROFESSIONAL THEME
   ======================================== */

/* Corporate Hero Section */
.undian-corporate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-left: 8px solid var(--bojonegoro-gold);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.undian-corporate::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.undian-corporate::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    transform: translate(-30px, 30px);
}

.corporate-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.corporate-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Corporate Stats */
.stats-corporate {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card-corporate {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-corporate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.stat-card-corporate:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.stat-icon-corporate {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.stat-number-corporate {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bojonegoro-blue);
    margin-bottom: 5px;
    display: block;
}

.stat-label-corporate {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Corporate Control Panel */
.control-panel-corporate {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.control-panel-corporate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 12px 12px 0 0;
}

.control-panel-corporate .card-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.control-panel-corporate .card-title {
    color: var(--bojonegoro-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.control-panel-corporate .card-subtitle {
    color: #666;
    font-size: 1rem;
}

/* Corporate Buttons */
.btn-corporate {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-corporate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-corporate:hover::before {
    left: 100%;
}

.btn-corporate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-corporate:active {
    transform: translateY(0);
}

.btn-corporate.btn-corporate-secondary {
    background: var(--gradient-gold);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-corporate.btn-corporate-secondary:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-corporate:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-corporate:disabled::before {
    display: none;
}

/* Corporate Drawing Container */
.drawing-container-corporate {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.drawing-container-corporate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 12px 12px 0 0;
}

/* Corporate Form Styling */
.form-control-corporate {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-corporate:focus {
    border-color: var(--bojonegoro-blue);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-label-corporate {
    color: var(--bojonegoro-blue);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Corporate Responsive */
@media (max-width: 768px) {
    .corporate-title {
        font-size: 2rem;
    }
    
    .corporate-subtitle {
        font-size: 1rem;
    }
    
    .stats-corporate {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card-corporate {
        padding: 25px;
    }
    
    .control-panel-corporate {
        padding: 25px;
    }
    
    .drawing-container-corporate {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .btn-corporate {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   FESTIVE/CELEBRATION THEME
   ======================================== */

/* Festive Hero Section */
.undian-festive {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 25%, #fecfef 75%, #ff9a9e 100%);
    color: #8B5CF6;
    padding: 50px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 4px solid #FFC107;
    box-shadow: 0 20px 40px rgba(255, 154, 158, 0.4);
    animation: festive-glow 3s ease-in-out infinite alternate;
}

@keyframes festive-glow {
    0% { box-shadow: 0 20px 40px rgba(255, 154, 158, 0.4); }
    100% { box-shadow: 0 25px 50px rgba(255, 154, 158, 0.6), 0 0 30px rgba(255, 193, 7, 0.3); }
}

.undian-festive::before {
    content: '🎊🎉🎈🎁🎊🎉🎈🎁🎊🎉🎈🎁';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    font-size: 2rem;
    animation: float-confetti 4s ease-in-out infinite;
    z-index: 1;
    line-height: 1;
}

@keyframes float-confetti {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(8deg); }
}

.undian-festive::after {
    content: '✨🌟⭐🎪✨🌟⭐🎪✨🌟⭐🎪';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    font-size: 1.5rem;
    animation: sparkle-bottom 3s ease-in-out infinite reverse;
    z-index: 1;
    line-height: 1;
}

@keyframes sparkle-bottom {
    0%, 100% { transform: translateX(0) scale(1); opacity: 0.8; }
    50% { transform: translateX(20px) scale(1.1); opacity: 1; }
}

.festive-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FECA57);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-text 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes rainbow-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.festive-subtitle {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    color: #6B46C1;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Festive Stats */
.stats-festive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card-festive {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 3px solid #FFC107;
    animation: card-bounce 2s ease-in-out infinite;
}

@keyframes card-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

.stat-card-festive::before {
    content: '🎨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    animation: rotate-icon 4s linear infinite;
}

@keyframes rotate-icon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stat-card-festive:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
    animation-play-state: paused;
}

.stat-icon-festive {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    animation: bounce-icon 1.5s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-number-festive {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label-festive {
    font-size: 1.1rem;
    color: #FFF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Festive Control Panel */
.control-panel-festive {
    background: linear-gradient(135deg, #FFECD2 0%, #FCB69F 100%);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
    border: 4px solid #FF6B6B;
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.control-panel-festive::before {
    content: '🎪🎭🎨🎯🎪🎭🎨🎯';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 1.5rem;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    text-align: center;
    animation: slide-decorations 6s linear infinite;
}

@keyframes slide-decorations {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.control-panel-festive .card-header {
    margin: 30px 0 25px 0;
    padding-bottom: 20px;
    border-bottom: 3px dotted #FF6B6B;
    position: relative;
    z-index: 2;
}

.control-panel-festive .card-title {
    color: #8B5CF6;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.control-panel-festive .card-subtitle {
    color: #6B46C1;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Festive Buttons */
.btn-festive {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1);
    background-size: 300% 300%;
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    animation: rainbow-bg 3s ease-in-out infinite;
    border: 3px solid #FFF;
}

@keyframes rainbow-bg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-festive::before {
    content: '✨';
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: left 0.3s ease;
}

.btn-festive:hover::before {
    left: calc(100% + 10px);
}

.btn-festive:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
    animation-play-state: paused;
}

.btn-festive:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-festive.btn-festive-secondary {
    background: linear-gradient(45deg, #96CEB4, #FECA57, #FF9FF3);
    background-size: 300% 300%;
    box-shadow: 0 8px 25px rgba(150, 206, 180, 0.4);
}

.btn-festive.btn-festive-secondary:hover {
    box-shadow: 0 15px 40px rgba(150, 206, 180, 0.6);
}

.btn-festive:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
}

.btn-festive:disabled::before {
    display: none;
}

/* Festive Drawing Container */
.drawing-container-festive {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 30px;
    border: 4px solid #FFC107;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    animation: container-pulse 4s ease-in-out infinite;
}

@keyframes container-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.drawing-container-festive::before {
    content: '🎊';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    animation: spin-left 3s linear infinite;
}

.drawing-container-festive::after {
    content: '🎉';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    animation: spin-right 3s linear infinite reverse;
}

@keyframes spin-left {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-right {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Festive Form Styling */
.form-control-festive {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #FF6B6B;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-control-festive:focus {
    border-color: #4ECDC4;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
    outline: none;
    transform: scale(1.02);
}

.form-label-festive {
    color: #8B5CF6;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Festive Responsive */
@media (max-width: 768px) {
    .festive-title {
        font-size: 2.2rem;
    }
    
    .festive-subtitle {
        font-size: 1rem;
    }
    
    .stats-festive {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card-festive {
        padding: 25px;
    }
    
    .control-panel-festive {
        padding: 30px 20px;
    }
    
    .drawing-container-festive {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .btn-festive {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .undian-festive::before {
        font-size: 1.5rem;
    }
    
    .undian-festive::after {
        font-size: 1.2rem;
    }
}

/* ========================================
   MINIMALIST CLEAN THEME
   ======================================== */

/* Minimalist Hero Section */
.undian-minimal {
    background: white;
    color: #2d3748;
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
}

.undian-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bojonegoro-blue) 0%, var(--bojonegoro-gold) 100%);
    border-radius: 16px 16px 0 0;
}

.minimal-title {
    font-size: 2.75rem;
    font-weight: 300;
    margin-bottom: 16px;
    color: #1a202c;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.minimal-subtitle {
    font-size: 1.125rem;
    color: #718096;
    font-weight: 400;
    line-height: 1.6;
}

/* Minimalist Stats */
.stats-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.stat-card-minimal {
    background: white;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #f7fafc;
    transition: all 0.2s ease;
    position: relative;
}

.stat-card-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.stat-icon-minimal {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.8;
}

.stat-number-minimal {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--bojonegoro-blue);
    margin-bottom: 8px;
    display: block;
    line-height: 1;
}

.stat-label-minimal {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Minimalist Control Panel */
.control-panel-minimal {
    background: white;
    border-radius: 12px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #f7fafc;
}

.control-panel-minimal .card-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.control-panel-minimal .card-title {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.control-panel-minimal .card-subtitle {
    color: #718096;
    font-size: 1rem;
    font-weight: 400;
}

/* Minimalist Buttons */
.btn-minimal {
    background: var(--bojonegoro-blue);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.btn-minimal:hover {
    background: var(--bojonegoro-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

.btn-minimal:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(30, 58, 138, 0.2);
}

.btn-minimal.btn-minimal-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-minimal.btn-minimal-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-minimal:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Minimalist Drawing Container */
.drawing-container-minimal {
    background: white;
    border-radius: 12px;
    padding: 64px 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #f7fafc;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.drawing-container-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bojonegoro-gold);
    border-radius: 0 0 4px 4px;
}

/* Minimalist Form Styling */
.form-control-minimal {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: #2d3748;
}

.form-control-minimal:focus {
    border-color: var(--bojonegoro-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

.form-label-minimal {
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

/* Minimalist Layout Utilities */
.minimal-form-row {
    display: flex;
    gap: 24px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.minimal-form-group {
    flex: 1;
    min-width: 280px;
}

.minimal-button-group {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* Minimalist Cards */
.card-minimal {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #f7fafc;
}

.card-minimal .card-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.card-minimal .card-title {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.025em;
}

.card-minimal .card-subtitle {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Minimalist Typography */
.text-minimal-primary {
    color: #1a202c;
}

.text-minimal-secondary {
    color: #4a5568;
}

.text-minimal-muted {
    color: #718096;
}

.text-minimal-accent {
    color: var(--bojonegoro-blue);
}

/* Minimalist Spacing */
.spacing-minimal-sm {
    margin-bottom: 16px;
}

.spacing-minimal-md {
    margin-bottom: 24px;
}

.spacing-minimal-lg {
    margin-bottom: 32px;
}

.spacing-minimal-xl {
    margin-bottom: 48px;
}

/* Minimalist Responsive */
@media (max-width: 768px) {
    .minimal-title {
        font-size: 2.25rem;
    }
    
    .minimal-subtitle {
        font-size: 1rem;
    }
    
    .stats-minimal {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stat-card-minimal {
        padding: 32px 24px;
    }
    
    .control-panel-minimal {
        padding: 32px 24px;
    }
    
    .drawing-container-minimal {
        padding: 48px 24px;
        min-height: 280px;
    }
    
    .minimal-form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .minimal-form-group {
        min-width: 100%;
    }
    
    .minimal-button-group {
        width: 100%;
        justify-content: center;
    }
    
    .btn-minimal {
        padding: 14px 24px;
        font-size: 0.875rem;
    }
    
    .undian-minimal {
        padding: 48px 24px;
    }
    
    .card-minimal {
        padding: 24px;
    }
}

/* ===== ROLLING DICE & WINNER POPUP STYLES ===== */

/* Dice Rolling Animation */
.lottery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    min-height: 200px;
}

/* Dice elements removed - using lottery number display only */

/* Lottery Number Display */
.lottery-display {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    border-radius: 16px;
    color: white;
}

.lottery-label {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.lottery-number {
    font-size: 48px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottery-participant-name {
    font-size: 24px;
    font-weight: 600;
    margin-top: 15px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.lottery-number.rolling {
    animation: numberFlicker 0.1s infinite;
}

.lottery-number.final-number {
    animation: winnerGlow 1s ease-in-out;
    color: #fbbf24 !important;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8) !important;
}

@keyframes numberFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes winnerGlow {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(251, 191, 36, 1);
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    }
}


/* Grand Winner Popup */
.winner-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.winner-popup {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
    animation: popupEntrance 0.8s ease-out;
}

@keyframes popupEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
    }
    60% {
        transform: scale(1.05) translateY(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }
}

.winner-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.winner-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.winner-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.winner-subtitle {
    font-size: 18px;
    margin: 10px 0 0 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.winner-content {
    padding: 40px;
}

/* Winner Info Section */
.winner-info {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #cbd5e1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.winner-name {
    font-size: 28px;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.winner-number {
    font-size: 24px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #fecaca;
}

.winner-address, .winner-phone {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.winner-address strong, .winner-phone strong {
    color: #1f2937;
    font-weight: 600;
}

.winner-prize-section {
    text-align: center;
    margin-bottom: 40px;
}

.prize-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.prize-image {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    border: 3px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* Responsive image sizing based on container */
@media (max-width: 768px) {
    .prize-image {
        max-height: 200px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .prize-image {
        max-height: 150px;
        max-width: 85%;
    }
}

/* Landscape orientation optimization */
@media (orientation: landscape) and (max-height: 600px) {
    .prize-image {
        max-height: 120px;
    }
}

.prize-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: #9ca3af;
    border: 3px solid #e5e7eb;
}

.winner-prize-image {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    border: 3px solid #e5e7eb;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    animation: prizeGlow 2s ease-in-out infinite alternate;
}

@keyframes prizeGlow {
    0% { box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3); }
}

.winner-prize-image.no-image {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
}

.winner-prize-name {
    font-size: 28px;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.winner-prize-desc {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 30px;
}

.winner-info-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #e2e8f0;
}

.winner-info-title {
    font-size: 24px;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 25px;
    text-align: center;
}

.winner-details {
    display: grid;
    gap: 20px;
}

.winner-detail-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.winner-detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-right: 20px;
    flex-shrink: 0;
}

.winner-detail-content {
    flex-grow: 1;
}

.winner-detail-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.winner-detail-value {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.winner-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.winner-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.winner-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.winner-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.winner-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid #d1d5db;
}

.winner-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f59e0b;
    animation: confettiFall 3s linear infinite;
}

.confetti:nth-child(odd) { background: #3b82f6; }
.confetti:nth-child(3n) { background: #10b981; }
.confetti:nth-child(4n) { background: #ef4444; }
.confetti:nth-child(5n) { background: #8b5cf6; }

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Enhanced Close Popup Button */
.close-popup-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.close-popup-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.close-popup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.close-popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.close-popup-btn:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lottery-container {
        gap: 10px;
        margin: 20px 0;
    }
    
    /* Dice elements removed */
    
    .lottery-number {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .lottery-participant-name {
        font-size: 18px;
        margin-top: 10px;
    }
    
    .winner-popup {
        width: 95%;
        margin: 10px;
    }
    
    .winner-content {
        padding: 20px;
    }
    
    .prize-image {
        max-height: 180px;
    }
    
    .prize-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2.5em;
    }
    
    /* Additional mobile optimizations */
    .winner-popup {
        width: 98%;
        margin: 5px;
        max-height: 95vh;
    }
    
    .winner-content {
        padding: 15px;
    }
    
    .winner-prize-image {
        max-height: 180px;
    }
    
    .winner-title {
        font-size: 24px;
    }
    
    .winner-prize-name {
        font-size: 22px;
    }
    
    .winner-name {
        font-size: 22px;
    }
    
    .winner-number {
        font-size: 18px;
    }
    
    .winner-address, .winner-phone {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .winner-actions {
        flex-direction: column;
    }
    
    .winner-btn {
        width: 100%;
    }
}

/* =====================================
   PAGINATION STYLES
   ===================================== */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius-md);
    border: 1px solid #e9ecef;
}

.pagination-info {
    color: #6c757d;
    font-size: var(--font-sm);
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    color: var(--bojonegoro-blue);
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.pagination .page-link:hover {
    background: var(--bojonegoro-blue-light);
    color: #fff;
    border-color: var(--bojonegoro-blue-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.pagination .page-item.active .page-link {
    background: var(--bojonegoro-blue);
    color: #fff;
    border-color: var(--bojonegoro-blue);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    transform: none;
    box-shadow: none;
}

/* Pagination Controls */
.pagination .page-item.prev .page-link,
.pagination .page-item.next .page-link {
    font-weight: 600;
    padding: 0 12px;
}

.pagination .page-item.first .page-link,
.pagination .page-item.last .page-link {
    font-weight: 600;
    padding: 0 8px;
}

/* Page size selector */
.page-size-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.page-size-select {
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius-sm);
    background: #fff;
    color: #495057;
    font-size: var(--font-sm);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.page-size-select:focus {
    outline: none;
    border-color: var(--bojonegoro-blue);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

/* Loading state */
.pagination.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .pagination .page-link {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: var(--font-xs);
    }
    
    .page-size-container {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 2px;
    }
    
    .pagination .page-link {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    .pagination-info {
        font-size: 12px;
    }
}
