/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Upload Section */
.upload-section {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.upload-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-btn i {
    margin-right: 10px;
}

.file-info {
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
}

/* Ticker Container */
.ticker-container {
    height: 200px;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ticker-content {
    position: absolute;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    animation: ticker 30s linear infinite;
    left: 100%;
}

.ticker-text {
    font-size: 24px;
    font-weight: 500;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    padding-right: 100px;
    min-width: max-content;
}

/* Ticker Animation */
@keyframes ticker {
    0% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* Pause animation on hover */
.ticker-content:hover {
    animation-play-state: paused;
}

/* Status Section */
.status-section {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #dee2e6;
}

.status-indicator {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.status-indicator i {
    margin-right: 8px;
    color: #28a745;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

.last-updated {
    font-size: 12px;
    color: #6c757d;
}

/* Loading State */
.loading .status-indicator i {
    color: #ffc107;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.error .status-indicator i {
    color: #dc3545;
    animation: none;
}

/* Success State */
.success .status-indicator i {
    color: #28a745;
    animation: flash 0.5s ease-in-out 3;
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 10px;
        border-radius: 15px;
    }
    
    .upload-section {
        padding: 20px;
    }
    
    .ticker-container {
        height: 150px;
    }
    
    .ticker-text {
        font-size: 18px;
    }
    
    .status-section {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .upload-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ticker-text {
        font-size: 16px;
    }
    
    .ticker-container {
        height: 120px;
    }
}