/**
 * Frontend стили для плагина видеоконференций
 */

/* === Контейнер конференции === */
.dvc-conference-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* === Заголовок конференции === */
.dvc-conference-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.dvc-conference-header h2 {
    color: #0073aa;
    font-size: 28px;
    margin-bottom: 10px;
}

.dvc-conference-datetime {
    font-size: 18px;
    color: #555;
    margin: 15px 0;
}

.dvc-conference-description {
    text-align: left;
    max-width: 800px;
    margin: 20px auto 0;
    color: #666;
    line-height: 1.6;
}

/* === Форма регистрации === */
.dvc-registration-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.dvc-registration-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.dvc-registration-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.dvc-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.dvc-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.dvc-button {
    width: 100%;
    padding: 14px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dvc-button:hover {
    background: #005a87;
}

.dvc-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* === Контейнер видео === */
#dvc-video-container {
    margin-top: 20px;
}

.dvc-jitsi-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-height: 600px;
    background: #1a1a1a;
}

/* === Сообщения === */
#dvc-join-message {
    margin-top: 15px;
}

.dvc-success {
    padding: 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.dvc-error {
    padding: 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* === Уведомления === */
.dvc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 350px;
    display: none;
}

.dvc-notification-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.dvc-notification-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.dvc-notification-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .dvc-conference-container {
        padding: 15px;
        margin: 15px;
    }
    
    .dvc-conference-header h2 {
        font-size: 22px;
    }
    
    .dvc-registration-form {
        padding: 20px;
    }
    
    .dvc-jitsi-container {
        min-height: 400px;
    }
    
    .dvc-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* === Индикатор загрузки === */
.dvc-loading {
    text-align: center;
    padding: 40px;
}

.dvc-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: dvc-spin 1s linear infinite;
}

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

/* === Дополнительные элементы === */
.dvc-info-badge {
    display: inline-block;
    padding: 5px 10px;
    background: #e7f3ff;
    color: #0073aa;
    border-radius: 4px;
    font-size: 14px;
    margin: 5px;
}

.dvc-participant-count {
    display: inline-block;
    padding: 8px 15px;
    background: #28a745;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin: 10px 0;
}

/* === Статус конференции === */
.dvc-status-live {
    display: inline-block;
    padding: 5px 15px;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    animation: dvc-pulse 2s infinite;
}

@keyframes dvc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.dvc-status-scheduled {
    display: inline-block;
    padding: 5px 15px;
    background: #ffc107;
    color: #333;
    border-radius: 4px;
    font-weight: 600;
}

.dvc-status-ended {
    display: inline-block;
    padding: 5px 15px;
    background: #6c757d;
    color: white;
    border-radius: 4px;
    font-weight: 600;
}
