/* Meeting AI 플러그인 프론트엔드 스타일 */

.meeting-ai-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.meeting-ai-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.meeting-ai-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.meeting-ai-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meeting-ai-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meeting-ai-label {
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.meeting-ai-label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.meeting-ai-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.meeting-ai-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 개선된 글자 수 카운터 */
.meeting-ai-char-counter {
    margin-top: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.char-count-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.char-current {
    font-weight: 600;
    color: #374151;
}

.token-estimate {
    color: #6b7280;
    font-size: 13px;
}

.char-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.char-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #fbbf24, #ef4444);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.length-info {
    margin-top: 8px;
}

.length-help-text {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

/* 길이 제한 오류 메시지 */
.length-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.length-error-message i {
    color: #dc2626;
}

.error-text {
    font-weight: 500;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.meeting-ai-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.meeting-ai-submit-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.meeting-ai-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.meeting-ai-submit-btn:disabled,
.meeting-ai-submit-btn.disabled {
    background: #9ca3af !important;
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.meeting-ai-submit-btn:disabled:hover,
.meeting-ai-submit-btn.disabled:hover {
    background: #9ca3af !important;
    transform: none;
    box-shadow: none;
}

.meeting-ai-clear-btn {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.meeting-ai-clear-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.loading-spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 결과 섹션 */
.meeting-ai-result {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 20px;
    overflow: hidden;
}

.meeting-ai-result-header {
    background: #1e293b;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meeting-ai-result-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.meeting-ai-result-actions {
    display: flex;
    gap: 8px;
}

/* 복사 드롭다운 스타일 */
.copy-dropdown {
    position: relative;
    display: inline-block;
}

.meeting-ai-copy-main-btn,
.meeting-ai-print-btn,
.meeting-ai-share-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.meeting-ai-copy-main-btn:hover,
.meeting-ai-print-btn:hover,
.meeting-ai-share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.copy-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    min-width: 180px;
    margin-top: 4px;
    overflow: hidden;
}

.copy-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.copy-option:hover {
    background: #f3f4f6;
}

.copy-option svg {
    opacity: 0.6;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.copy-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.copy-text,
.print-text,
.share-text {
    font-size: 12px;
}

/* 복사 성공 애니메이션 */
.copy-success {
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.meeting-ai-result-content {
    padding: 20px;
    line-height: 1.7;
}

.meeting-ai-result-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

/* 마크다운 콘텐츠 스타일링 */
.markdown-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
}

.markdown-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1f2937;
    border-bottom: 3px solid #6366f1;
    padding-bottom: 10px;
}

.markdown-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    color: #374151;
    border-left: 4px solid #6366f1;
    padding-left: 12px;
}

.markdown-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: #4b5563;
}

.markdown-content .emoji-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.markdown-content p {
    margin: 12px 0;
    color: #374151;
}

.markdown-content strong {
    font-weight: 600;
    color: #1f2937;
}

.markdown-content em {
    font-style: italic;
    color: #6b7280;
}

.markdown-content ul, 
.markdown-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.markdown-content li {
    margin: 6px 0;
    color: #374151;
}

.markdown-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #e11d48;
}

.markdown-content pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    color: #1f2937;
}

/* 분석 테이블 스타일링 */
.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.analysis-table thead {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.analysis-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.analysis-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #374151;
}

.analysis-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.analysis-table tbody tr:hover {
    background: #e0f2fe;
    transition: background-color 0.2s ease;
}

.analysis-table tbody tr:last-child td {
    border-bottom: none;
}

/* 구분선 스타일링 */
.markdown-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 25px 0;
}

/* 인용구 스타일링 */
.markdown-content blockquote {
    border-left: 4px solid #6366f1;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
    color: #4b5563;
    font-style: italic;
}

/* 배지 스타일 */
.markdown-content .badge {
    display: inline-block;
    padding: 4px 8px;
    background: #6366f1;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 0 4px;
}

/* 하이라이트 */
.markdown-content .highlight {
    background: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
    color: #92400e;
}

/* 시각화 컨테이너 스타일링 */
.visualization-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 25px 0;
    overflow: hidden;
}

.viz-title {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    margin: 0;
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.viz-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.viz-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.viz-tab:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.viz-tab.active {
    background: white;
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.viz-content {
    position: relative;
    min-height: 400px;
}

.viz-panel {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.viz-panel.active {
    display: block;
}

.mermaid-chart {
    text-align: center;
    overflow: auto;
}

.mermaid-chart svg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: #fafbfc;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Mermaid 차트 커스텀 스타일 */
.viz-panel .mermaid-chart .node rect,
.viz-panel .mermaid-chart .node circle,
.viz-panel .mermaid-chart .node ellipse,
.viz-panel .mermaid-chart .node polygon {
    fill: #6366f1;
    stroke: #4f46e5;
    stroke-width: 2px;
}

.viz-panel .mermaid-chart .node .label {
    color: white;
    font-weight: 500;
}

.viz-panel .mermaid-chart .edgePath .path {
    stroke: #6b7280;
    stroke-width: 2px;
}

.viz-panel .mermaid-chart .edgeLabel {
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
}

/* 로딩 상태 */
.viz-panel p {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    margin-top: 50px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 진행 상황 표시 */
.meeting-ai-progress {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.progress-header {
    text-align: center;
    margin-bottom: 25px;
}

.progress-header h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.progress-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.step.active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.05);
    animation: pulse 1.5s infinite;
}

.step.completed {
    background: rgba(34, 197, 94, 0.3);
    opacity: 1;
    transform: scale(1);
    animation: none;
}

.step.completed .step-icon:after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.step-icon {
    font-size: 24px;
    margin-bottom: 8px;
    position: relative;
}

.step-text {
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #34d399, #10b981);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.progress-text {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 에러 섹션 */
.meeting-ai-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.meeting-ai-error-content strong {
    color: #dc2626;
    display: block;
    margin-bottom: 8px;
}

.meeting-ai-error-content p {
    color: #7f1d1d;
    margin: 0 0 12px 0;
    font-size: 14px;
}

.meeting-ai-retry-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.meeting-ai-retry-btn:hover {
    background: #b91c1c;
}

/* 팁 섹션 */
.meeting-ai-tips {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 20px;
}

.meeting-ai-tips h4 {
    color: #92400e;
    margin: 0 0 12px 0;
    font-size: 14px;
}

.meeting-ai-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #78350f;
}

.meeting-ai-tips li {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .meeting-ai-container {
        padding: 15px;
    }
    
    .meeting-ai-form-wrapper {
        padding: 20px;
    }
    
    .meeting-ai-title {
        font-size: 20px;
    }
    
    .meeting-ai-actions {
        flex-direction: column;
    }
    
    .meeting-ai-submit-btn,
    .meeting-ai-clear-btn {
        width: 100%;
        justify-content: center;
    }
    
    .meeting-ai-result-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .meeting-ai-result-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .copy-dropdown-menu {
        right: auto;
        left: 0;
        min-width: 160px;
    }
    
    .meeting-ai-copy-main-btn,
    .meeting-ai-print-btn,
    .meeting-ai-share-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .copy-text,
    .print-text,
    .share-text {
        display: none;
    }
    
    .copy-option {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    /* 진행 상황 표시 모바일 최적화 */
    .meeting-ai-progress {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .step {
        padding: 8px 6px;
    }
    
    .step-icon {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .step-text {
        font-size: 10px;
    }
    
    .step.completed .step-icon:after {
        width: 14px;
        height: 14px;
        font-size: 10px;
        line-height: 14px;
        top: -3px;
        right: -3px;
    }
    
    .progress-header h4 {
        font-size: 16px;
    }
    
    .progress-header p {
        font-size: 13px;
    }
    
    /* 시각화 모바일 최적화 */
    .visualization-container {
        margin: 15px 0;
    }
    
    .viz-title {
        font-size: 18px;
        padding: 15px;
    }
    
    .viz-tabs {
        flex-direction: column;
    }
    
    .viz-tab {
        padding: 12px 15px;
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
        border-right: none;
    }
    
    .viz-tab.active {
        border-bottom: 3px solid #6366f1;
    }
    
    .viz-panel {
        padding: 20px 15px;
    }
    
    .mermaid-chart svg {
        padding: 15px;
    }
    
    .viz-content {
        min-height: 300px;
    }
    
    /* 문자 카운터 모바일 최적화 */
    .meeting-ai-char-counter {
        padding: 12px;
    }
    
    .char-count-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .char-current {
        font-size: 13px;
    }
    
    .token-estimate {
        font-size: 12px;
    }
    
    .length-help-text {
        font-size: 11px;
    }
    
    .length-error-message {
        padding: 10px;
        font-size: 13px;
    }
}

/* 분석 탭 스타일 */
.analysis-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.analysis-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    gap: 4px;
}

.analysis-tab-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    border-radius: 8px;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 0;
}

.analysis-tab-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.analysis-tab-btn.active {
    background: #6366f1;
    color: white;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.analysis-tab-btn .tab-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.analysis-tab-btn .tab-text {
    font-weight: 500;
}

.analysis-tab-content {
    min-height: 400px;
    position: relative;
}

.analysis-tab-panel {
    display: none;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.analysis-tab-panel.active {
    display: block;
}

.analysis-tab-panel .markdown-content {
    max-width: none;
}

.analysis-tab-panel .markdown-content h2 {
    margin-top: 0;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.analysis-tab-panel .markdown-content h3 {
    color: #334155;
    margin-top: 20px;
}

/* 탭 내용 테이블 스타일 */
.analysis-tab-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.analysis-tab-panel table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.analysis-tab-panel table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.analysis-tab-panel table tr:last-child td {
    border-bottom: none;
}

.analysis-tab-panel table tr:hover {
    background: #f8fafc;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .analysis-tab-buttons {
        padding: 4px;
        gap: 2px;
    }
    
    .analysis-tab-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: auto;
        flex: 1;
        justify-content: center;
    }
    
    .analysis-tab-btn .tab-text {
        display: none;
    }
    
    .analysis-tab-btn .tab-icon {
        font-size: 16px;
    }
    
    .analysis-tab-panel {
        padding: 16px;
    }
    
    .analysis-tab-panel table {
        font-size: 14px;
    }
    
    .analysis-tab-panel table th,
    .analysis-tab-panel table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .analysis-tab-buttons {
        flex-wrap: wrap;
    }
    
    .analysis-tab-btn {
        flex: 1 1 calc(25% - 4px);
        min-width: 60px;
    }
}

/* 시각화 컨테이너 스타일 */
.visualization-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.visualization-container h2 {
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.vis-chart-wrapper,
.mermaid-chart-wrapper {
    margin-bottom: 32px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.vis-chart-wrapper h3,
.mermaid-chart-wrapper h3 {
    color: #334155;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.vis-chart,
.mermaid-chart {
    background: white;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vis-chart {
    min-height: 600px;
    height: 600px;
    border: 1px solid #e5e7eb;
}

.mermaid-chart svg {
    max-width: 100%;
    height: auto;
}

.vis-chart .error,
.mermaid-chart .error {
    color: #ef4444;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    text-align: left;
}

.vis-chart .error h4,
.mermaid-chart .error h4 {
    margin: 0 0 8px 0;
    color: #dc2626;
    font-size: 16px;
    font-weight: 600;
}

.vis-chart .error p,
.mermaid-chart .error p {
    margin: 0 0 12px 0;
    color: #991b1b;
    font-size: 14px;
}

.vis-chart .error details,
.mermaid-chart .error details {
    margin-top: 12px;
}

.vis-chart .error summary,
.mermaid-chart .error summary {
    cursor: pointer;
    font-size: 13px;
    color: #7c2d12;
    padding: 4px 0;
    font-weight: 500;
}

.vis-chart .error summary:hover,
.mermaid-chart .error summary:hover {
    color: #dc2626;
}

.vis-chart .error pre,
.mermaid-chart .error pre {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #374151;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.vis-chart .error code,
.mermaid-chart .error code {
    font-family: 'Courier New', Courier, monospace;
    background: none;
    padding: 0;
    color: inherit;
}

/* 대체 플로우차트 스타일 */
.fallback-chart {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.simple-flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 300px;
    margin: 0 auto;
}

.flow-step {
    background: #6366f1;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.flow-arrow {
    color: #6366f1;
    font-size: 24px;
    font-weight: bold;
    margin: 8px 0;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .visualization-container {
        padding: 16px;
        margin: 16px 0;
    }
    
    .vis-chart-wrapper,
    .mermaid-chart-wrapper {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .vis-chart-wrapper h3,
    .mermaid-chart-wrapper h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .vis-chart,
    .mermaid-chart {
        padding: 12px;
        min-height: 400px;
    }
    
    .vis-chart {
        min-height: 450px;
        height: 450px;
    }
    
    .fallback-chart {
        padding: 12px;
    }
    
    .simple-flowchart {
        max-width: 280px;
    }
    
    .flow-step {
        padding: 12px 18px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .flow-arrow {
        font-size: 20px;
        margin: 6px 0;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .meeting-ai-form-wrapper {
        background: #1e293b;
        color: #e2e8f0;
    }
    
    .meeting-ai-title {
        color: #f1f5f9;
    }
    
    .meeting-ai-label {
        color: #cbd5e1;
    }
    
    .meeting-ai-textarea {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .meeting-ai-textarea:focus {
        border-color: #6366f1;
    }
    
    .meeting-ai-char-count {
        color: #94a3b8;
    }
    
    .meeting-ai-clear-btn {
        background: transparent;
        color: #94a3b8;
        border-color: #475569;
    }
    
    .meeting-ai-clear-btn:hover {
        background: #475569;
        border-color: #64748b;
    }
}