/* エラーログ分析画面 */

/* サマリカード */
.error-stat-card {
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.error-stat-total {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.error-stat-unresolved {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.error-stat-today {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.error-stat-critical {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.error-stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.error-stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* エラー詳細 DL */
.error-detail-dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 16px;
    margin: 0;
}

.error-detail-dl dt {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.85rem;
}

.error-detail-dl dd {
    margin: 0;
    font-size: 0.9rem;
    word-break: break-word;
}

/* エラーメッセージボックス */
.error-message-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 14px;
    color: #991b1b;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* スタックトレース */
.stack-trace-box {
    margin: 0;
    padding: 16px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.75rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 0;
}

.stack-trace-collapsed {
    max-height: 200px;
    overflow-y: hidden;
    position: relative;
}

.stack-trace-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #1e293b);
}

/* AI分析セクション */
.ai-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.ai-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ai-section-title {
    color: #4338ca;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid #6366f1;
}

.ai-section p,
.ai-section ul {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #374151;
}

.ai-raw-response {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #374151;
}

/* 修正案ボックス */
.fix-suggestion-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #166534;
    white-space: pre-wrap;
    word-break: break-word;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .error-stat-number {
        font-size: 1.5rem;
    }

    .error-detail-dl {
        grid-template-columns: 1fr;
    }

    .error-detail-dl dt {
        margin-top: 8px;
    }
}
