/* Simba Trading Room Frontend Styles */

.simba-trading-room-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.simba-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0073aa;
}

.simba-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #333;
}

.simba-header .subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Status Section */
.simba-status-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.simba-current-host {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.host-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

.host-badge.live {
    background: rgba(255, 255, 255, 0.15);
}

.host-badge.offline {
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.offline-dot {
    width: 12px;
    height: 12px;
    background: #999;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.host-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.host-info strong {
    font-size: 20px;
    color: white;
}

.host-info small {
    font-size: 14px;
    opacity: 0.9;
}

/* Controls Section */
.simba-controls-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.simba-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.simba-btn {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.simba-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.simba-btn-live {
    background: #4caf50;
    color: white;
}

.simba-btn-live:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.simba-btn-release {
    background: #f44336;
    color: white;
}

.simba-btn-release:hover:not(:disabled) {
    background: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.simba-help-text {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* Queue Section */
.simba-queue-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.simba-queue-section h3 {
    margin-top: 0;
    color: #333;
}

.queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.queue-list li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    font-size: 15px;
}

.badge-next {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
    white-space: nowrap;
}

.no-queue {
    color: #999;
    font-style: italic;
    padding: 15px;
    text-align: center;
}

/* Stream Section */
.simba-stream-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stream-embed-placeholder {
    background: #f0f0f0;
    padding: 60px 20px;
    border-radius: 6px;
    text-align: center;
    color: #999;
    border: 2px dashed #ddd;
}

/* Alert Boxes */
.simba-alert-box {
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    border-left: 4px solid #f44336;
    background: #ffebee;
    color: #c62828;
}

.simba-alert-box.error {
    border-left-color: #f44336;
    background: #ffebee;
    color: #c62828;
}

.simba-alert-box.warning {
    border-left-color: #ff9800;
    background: #fff3e0;
    color: #e65100;
}

.simba-alert-box.success {
    border-left-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
}

.simba-alert-box p {
    margin: 0;
}

/* Notifications */
.simba-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.simba-notification.success {
    background: #4caf50;
    color: white;
}

.simba-notification.error {
    background: #f44336;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .simba-trading-room-container {
        padding: 15px;
    }
    
    .simba-header h1 {
        font-size: 24px;
    }
    
    .simba-status-section {
        padding: 20px;
    }
    
    .simba-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .simba-buttons {
        flex-direction: column;
    }
    
    .simba-btn {
        width: 100%;
    }
    
    .queue-list li {
        font-size: 14px;
    }
}
