/* Report Styles */
.report-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
}

.report-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #2563eb;
    margin-bottom: 40px;
}

.report-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.report-date {
    font-size: 16px;
    color: #64748b;
}

/* Report Summary */
.report-summary {
    margin-bottom: 40px;
}

.report-summary h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1e293b;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.summary-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.summary-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.summary-change {
    font-size: 14px;
    font-weight: 600;
}

.summary-change.positive {
    color: #10b981;
}

.summary-change.negative {
    color: #ef4444;
}

/* Report Analysis */
.report-analysis {
    margin-bottom: 40px;
}

.report-analysis h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

.analysis-content {
    background: #f8fafc;
    border-radius: 8px;
    padding: 24px;
}

.analysis-content p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.analysis-content p:last-child {
    margin-bottom: 0;
}

/* Report Details */
.report-details {
    margin-bottom: 40px;
}

.report-details h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.detail-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f1f5f9;
}

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

.detail-table td:first-child {
    font-weight: 500;
    color: #64748b;
}

.detail-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.detail-table .positive {
    color: #10b981;
}

.detail-table .negative {
    color: #ef4444;
}

/* Report Footer */
.report-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.report-footer p {
    margin-bottom: 8px;
}

/* Print Styles */
@media print {
    .report-container {
        max-width: 100%;
    }
    
    .report-header {
        page-break-after: avoid;
    }
    
    .summary-grid,
    .details-grid {
        page-break-inside: avoid;
    }
    
    .report-footer {
        page-break-before: avoid;
    }
}

/* History List Styles */
.history-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.empty-message {
    text-align: center;
    color: #64748b;
    padding: 40px;
    font-size: 16px;
}