/* assets/css/style.css */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-bg: #1a1a2e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Market card styles */
.market-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.market-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
}

.result-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.time-display {
    font-size: 1.1rem;
    color: #666;
}

/* Timer styles */
.timer {
    background: var(--dark-bg);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.timer-expired {
    background: var(--danger-color);
    color: white;
    padding: 10px;
    border-radius: 5px;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Subscription badge */
.subscription-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: bold;
}

/* API key display */
.api-key-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    word-break: break-all;
}

/* Responsive table */
.table-responsive {
    overflow-x: auto;
}

/* Animation for results update */
@keyframes flash {
    0% { background-color: #fff; }
    50% { background-color: #fff3cd; }
    100% { background-color: #fff; }
}

.flash-update {
    animation: flash 1s ease;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .market-card {
        padding: 15px;
    }
    
    .market-name {
        font-size: 1.2rem;
    }
    
    .result-number {
        font-size: 1.5rem;
    }
}