/* Copy Plus DTP Queue System - Main Stylesheet */
/* Version 1.0 */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #25D366;
    --dark-bg: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --transition-speed: 0.3s;
    --border-radius: 20px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
}

/* Background Overlay */
.bg-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.bg-overlay > * {
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes countdown {
    from {
        transform: scale(1.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes tokenPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Buttons */
.btn-custom {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}

.btn-email {
    background: #0066cc;
    color: white;
}

.btn-email:hover {
    background: #0052a3;
    color: white;
}

/* Token Display */
.token-number {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tokenPop 0.6s ease-out;
}

.token-display {
    font-size: 6rem;
    font-weight: 900;
    color: #25D366;
    text-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    animation: pulse 2s infinite;
}

/* Countdown */
.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b6b;
    animation: countdown 1s ease-in-out;
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
}

/* QR Code Container */
.qr-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-container img {
    max-width: 300px;
    height: auto;
}

/* Statistics Cards */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Current Token Screen */
.current-token-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.current-token-display {
    font-size: 15rem;
    font-weight: 900;
    color: #25D366;
    text-shadow: 0 0 50px rgba(37, 211, 102, 0.7),
                 0 0 100px rgba(37, 211, 102, 0.5),
                 0 0 150px rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
    line-height: 1;
}

.now-serving {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Table Styles */
.table-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
}

.table-custom thead th {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.table-custom tbody td {
    border-color: var(--glass-border);
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .token-number {
        font-size: 4rem;
    }
    
    .current-token-display {
        font-size: 8rem;
    }
    
    .now-serving {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .qr-container img {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .token-number {
        font-size: 3rem;
    }
    
    .current-token-display {
        font-size: 5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none;
    }
    
    .token-number {
        color: black;
        -webkit-text-fill-color: black;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Utility Classes */
.full-height {
    min-height: 100vh;
}

.cursor-pointer {
    cursor: pointer;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}