/* 控制端特定样式 */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-info span {
    font-weight: bold;
    color: #555;
}

.main-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 左侧面板 */
.timer-list-panel {
    flex: 1;
    text-align: left;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timer-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.timer-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.timer-list-container table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timer-actions {
    display: flex;
    gap: 0.5rem;
}

.timer-actions button {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* 右侧主区 */
.main-area {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.speaker-preview {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.preview-display {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.message-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

#message-input {
    height: 100px;
    resize: vertical;
}

.message-history {
    max-height: 200px;
    overflow-y: auto;
}

.message-history ul {
    list-style-type: none;
}

.message-history li {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    background: white;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

/* 底部控制条 */
.main-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.global-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.global-controls .control-btn {
    padding: 10px 15px;
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
}

.time-adjust-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.time-adjust-controls .adjust-btn {
    padding: 8px 12px;
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
}

.total-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.total-progress .progress-container {
    flex: 1;
}

/* 状态指示器 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-not-started {
    background-color: #6c757d;
    color: white;
}

.status-in-progress {
    background-color: #28a745;
    color: white;
}

.status-completed {
    background-color: #dc3545;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .main-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .global-controls,
    .time-adjust-controls {
        justify-content: center;
    }
}