/* Trainer Styles */

.trainer-scenarios {
    display: block;
}

.trainer-session {
    display: none;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.session-timer {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
}

.session-status {
    padding: 5px 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 20px;
    font-size: 0.9em;
}

.scenario-description {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

/* Metrics Dashboard */
.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.metric-panel {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.metric-title {
    font-size: 0.9em;
    color: #aaa;
}

.metric-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #00d4aa;
}

.metric-value.warning {
    color: #ffc107;
}

.metric-value.critical {
    color: #dc3545;
}

.metric-panel canvas {
    width: 100%;
    height: 150px;
    background: #0f0f1e;
    border-radius: 5px;
}

/* Extra Metrics */
.extra-metric {
    display: none;
}

/* Logs Panel */
.logs-panel {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.logs-panel h4 {
    color: #00d4aa;
    margin-bottom: 10px;
}

.logs-container {
    background: #0f0f1e;
    border-radius: 8px;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.logs-container::-webkit-scrollbar {
    width: 8px;
}

.logs-container::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 4px;
}

.log-line {
    margin-bottom: 8px;
    line-height: 1.4;
    padding: 4px 8px;
    border-radius: 3px;
    border-left: 3px solid transparent;
}

.log-line:hover {
    background: rgba(255,255,255,0.05);
}

.log-time {
    color: #858585;
    margin-right: 8px;
}

.log-level {
    margin-right: 8px;
    font-weight: bold;
}

.log-level.ERROR {
    color: #f44336;
}

.log-level.WARN {
    color: #FFC107;
}

.log-level.INFO {
    color: #2196F3;
}

.log-level.CRITICAL {
    color: #E91E63;
    font-weight: 900;
}

.log-service {
    color: #4CAF50;
    margin-right: 8px;
}

.log-message mark {
    background: #ff6b6b;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Action Panel */
.trainer-actions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.trainer-actions h3 {
    margin-bottom: 15px;
    color: #333;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.5em;
}

/* Feedback */
.trainer-feedback {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

/* Phase Progress */
.phase-progress {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.phase-indicators {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.phase-indicator {
    flex: 1;
    padding: 10px;
    background: #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85em;
    transition: all 0.3s;
}

.phase-indicator.active {
    background: #667eea;
    color: white;
}

.phase-indicator.completed {
    background: #4CAF50;
    color: white;
}

/* Chain Result */
.chain-result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.chain-timeline {
    margin-bottom: 20px;
}

.chain-flow {
    margin-top: 20px;
}

.chain-step {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.chain-step-number {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.chain-step-content h5 {
    margin-bottom: 5px;
    color: #333;
}

.chain-step-content p {
    color: #666;
    font-size: 0.9em;
}

.chain-step-arrow {
    text-align: center;
    font-size: 1.5em;
    margin: -10px 0 5px 20px;
}

/* Scenario Cards */
.scenario-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.scenario-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.scenario-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.scenario-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.scenario-card h4 {
    margin-bottom: 8px;
    color: #333;
}

.scenario-card p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.scenario-difficulty {
    display: inline-block;
    padding: 3px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.8em;
}

.chain-scenario .scenario-difficulty {
    background: #fce4ec;
    color: #c2185b;
}

.chain-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.8em;
}
