/* Queue Download Page Styles - Matching existing otr.datenkeller.net style */
.queue-waiting-container {
    background: white;
    border: 1px solid #e9ecef;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.queue-position {
    font-size: 24px;
    color: #40C1D4;
    font-weight: bold;
    margin: 15px 0;
}

.queue-wait-time {
    font-size: 18px;
    color: #666;
    margin: 10px 0;
}

.queue-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.queue-stat {
    text-align: center;
}

.queue-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.queue-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.queue-progress-bar {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.queue-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #40C1D4, #2ba3b5);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.queue-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    display: none;
}

.queue-message.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.queue-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.queue-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.queue-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.download-ready {
    display: none;
}

.download-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.download-button:hover {
    background: #218838;
    color: white;
}

.rejoin-section {
    display: none;
    margin-top: 20px;
}

.rejoin-button {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.rejoin-button:hover {
    background: #138496;
}

.connection-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: none;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.connection-indicator.reconnecting {
    display: flex;
    background: #fff3cd;
    color: #856404;
}

.connection-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #856404;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

.queue-info-text {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.queue-info-text small {
    color: #999;
}

/* Spinner animation */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #40C1D4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Premium user styles */
.premium-download-container {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.premium-badge {
    background: #ffc107;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
}

.download-link-input {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .queue-waiting-container,
    .premium-download-container {
        margin: 10px;
        padding: 15px;
    }
    
    .queue-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-link-input {
        font-size: 12px;
    }
}