/* Depreciation Analysis Styles - Based on Working Capital CSS */

/* 입력 카드 스타일 */
.input-card {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.card-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e4e8;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.card-header h2 i {
    margin-right: 10px;
    color: #003366;
}

/* 섹션 타이틀 */
.section-title {
    font-weight: 600;
    color: #003366;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 8px;
}

/* 폼 스타일 */
form {
    padding: 20px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
    width: 100%;
    box-sizing: border-box;
}

.form-row .form-group {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
}

label i {
    margin-right: 5px;
    color: #003366;
}

input[type="text"], 
input[type="number"],
select {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #cfd7e6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus, 
input[type="number"]:focus,
select:focus {
    border-color: #007acc;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.15);
    outline: none;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 30px;
}

.input-with-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #003366;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100;
    width: 200px;
}

.tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 15px;
    border-width: 5px;
    border-style: solid;
    border-color: #003366 transparent transparent transparent;
}

.ticker-lookup {
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.ticker-lookup a {
    color: #007bff;
    text-decoration: none;
}

.ticker-lookup a:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: block;
    width: 100%;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.submit-btn i {
    margin-right: 8px;
}

/* Methods Overview */
.methods-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.method-header i {
    font-size: 1.5rem;
    color: #007bff;
}

.method-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.method-content {
    color: #6c757d;
    line-height: 1.6;
}

.method-formula {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.method-content ul {
    margin-top: 0.75rem;
    padding-left: 1.5rem;
}

.method-content li {
    margin: 0.5rem 0;
}

/* Data Summary */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.data-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.data-header i {
    font-size: 1.5rem;
    color: #007bff;
}

.data-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.data-value {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin: 1rem 0;
    text-align: center;
}

.data-explanation {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

/* Calculation Detail Cards */
.calculation-detail-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calculation-detail-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.calculation-detail-card .card-header h5 {
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
}

.formula-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #007bff;
}

.formula-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.formula-result {
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #007bff;
    text-align: center;
    font-weight: 600;
}

.formula-explanation {
    margin-top: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.explanation-text {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    line-height: 1.6;
}

/* Method Tabs */
.method-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem 0;
    flex-wrap: wrap;
}

.method-tab {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.method-tab:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f8f9fa;
}

.method-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.method-tab i {
    font-size: 1.1rem;
}

/* Comparison Table */
.comparison-table-section {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comparison-table-section h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.table-instruction {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.table-responsive {
    overflow-x: auto;
}

.schedule-table-container {
    margin-top: 1rem;
}

.amortization-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    font-size: 0.95rem;
}

.amortization-schedule thead {
    background: #003366;
    color: white;
}

.amortization-schedule th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white !important;
    border-bottom: 2px solid #002244;
    white-space: nowrap;
}

.amortization-schedule td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.amortization-schedule tbody tr {
    transition: background 0.2s ease;
}

.amortization-schedule tbody tr:hover {
    background: #f8f9fa;
}

.amortization-schedule tbody tr:nth-child(even) {
    background: #fafbfc;
}

.amortization-schedule tbody tr:nth-child(even):hover {
    background: #f0f1f2;
}

.year-cell {
    font-weight: 600;
    color: #007bff;
    background: #f8f9fa !important;
    text-align: center;
}

.depreciation-cell {
    font-weight: 600;
    color: #28a745;
    position: relative;
}

.hover-cell {
    position: relative;
    cursor: help;
}

.hover-cell:hover {
    background: #e7f3ff !important;
    color: #007bff;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    z-index: 10;
}

/* Formula Tooltip */
.formula-tooltip {
    position: absolute;
    background: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 450px;
    font-size: 0.9rem;
    line-height: 1.6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: none;
}

.formula-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #2c3e50;
}

.formula-tooltip.show {
    opacity: 1;
    display: block;
}

.formula-tooltip .formula-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffc107;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.formula-tooltip .formula-content {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.formula-tooltip .formula-result-value {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #4ade80;
    font-size: 1rem;
}

.formula-tooltip .formula-result-value strong {
    color: #4ade80;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table thead {
    background: #f8f9fa;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
}

.comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

/* Impact Analysis */
.impact-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.impact-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.impact-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.impact-card h4 i {
    color: #007bff;
}

.impact-content {
    color: #6c757d;
    line-height: 1.6;
}

.impact-value {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.impact-value strong {
    color: #007bff;
    font-size: 1.1rem;
}

/* Strategy Section */
.strategy-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.strategy-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.strategy-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.strategy-card h4 i {
    color: #007bff;
}

.strategy-card ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #6c757d;
    line-height: 1.8;
}

.strategy-card li {
    margin: 0.75rem 0;
}

/* Chart Section */
.chart-section {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

.chart-section h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#trend-chart,
#comparison-chart,
#actual-vs-calculated-chart {
    height: 400px;
    margin-top: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    min-width: 0 !important;
    overflow: hidden;
}

/* Step navigation styles */
.step {
    display: none;
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
    animation: fadeIn 0.5s;
}

.step.active {
    display: block;
}

.step h3 {
    color: #003366;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.step-description {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: #495057;
}

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

.next-step,
.show-all {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.next-step:hover,
.show-all:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.show-all {
    background-color: #6c757d;
}

.show-all:hover {
    background-color: #5a6268;
}

.step > .next-step,
.step > .show-all {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Input summary card styles */
.input-summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.summary-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.summary-item strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.summary-item .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #007bff;
    margin: 0.5rem 0;
}

.summary-item .explanation {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
}

.explanation-panel {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.explanation-panel .alert {
    margin-bottom: 0;
}

.explanation-details {
    margin-top: 1rem;
}

.detail-item {
    margin: 1rem 0;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
}

.detail-item strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.detail-item p {
    margin: 0.5rem 0 0 0;
    color: #495057;
    line-height: 1.6;
}

/* Loading Spinner */
#loading {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #003366;
    margin: 0 auto 15px;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    display: inline-block;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

#loading p {
    margin: 0;
    color: #003366;
    font-size: 16px;
    font-weight: 500;
}

/* Comparison Section - Step 6 */
.comparison-summary {
    margin: 2rem 0;
}

.actual-depreciation-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #007bff;
}

.actual-depreciation-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.actual-depreciation-card h4 i {
    color: #007bff;
    font-size: 1.5rem;
}

.actual-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #007bff;
}

.actual-explanation {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.method-comparison-section {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.method-comparison-section h4 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: #003366;
    color: white;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    color: white !important;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    color: #2c3e50;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table tbody tr.closest-match {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
}

.comparison-table tbody tr.closest-match:hover {
    background: #d0e7ff;
}

.comparison-table tbody tr.closest-match td {
    color: #2c3e50;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.badge-success {
    background: #007bff;
    color: white;
}

.match-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.match-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    transition: width 0.5s ease;
    border-radius: 12px;
}

.match-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.closest-method-analysis {
    margin: 2rem 0;
}

.analysis-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.analysis-card.highlight {
    border: 2px solid #007bff;
    background: white;
    border-top: 4px solid #007bff;
}

.analysis-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.analysis-card h4 i {
    color: #007bff;
    font-size: 1.5rem;
}

.method-name-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.comparison-details {
    margin: 1.5rem 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.detail-row strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.percentage-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #007bff;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.analysis-conclusion {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.analysis-conclusion p {
    margin: 0;
    line-height: 1.8;
    color: #495057;
    font-size: 1rem;
}

.analysis-conclusion strong {
    color: #2c3e50;
}

/* Analysis Insight Card - Step 7 */
.analysis-insight-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ffc107;
}

.analysis-insight-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.analysis-insight-card h4 i {
    color: #ffc107;
}

.insight-content {
    color: #495057;
    line-height: 1.8;
}

.insight-content p {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #fffbf0;
    border-radius: 6px;
}

.insight-content strong {
    color: #2c3e50;
}

/* Estimation Limitation Card - Step 7 */
.estimation-limitation-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #dc3545;
}

.estimation-limitation-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.estimation-limitation-card h4 i {
    color: #dc3545;
}

.limitation-content {
    color: #495057;
    line-height: 1.8;
}

.limitation-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.limitation-content li {
    margin: 0.75rem 0;
}

/* CapEx Relationship Section - Step 8 */
.capex-relationship-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.capex-relationship-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.capex-relationship-section h4 i {
    color: #007bff;
}

.relationship-explanation {
    margin-top: 1.5rem;
}

.relationship-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.relationship-card h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.relationship-card h5 i {
    color: #007bff;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #007bff;
}

.flow-step strong {
    display: block;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.flow-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    margin: 1rem 0;
}

.flow-step p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

.flow-arrow {
    font-size: 2rem;
    color: #007bff;
    font-weight: 700;
    flex-shrink: 0;
}

.relationship-insight {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #007bff;
}

.relationship-insight p {
    color: #495057;
    line-height: 1.8;
    margin: 1rem 0;
}

.relationship-insight strong {
    color: #2c3e50;
}

.capex-ratio {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 2px solid #007bff;
}

.capex-ratio strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.ratio-value {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin: 0.5rem 0;
}

.capex-ratio p {
    margin: 0.5rem 0 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Policy Change Section - Step 9 */
.policy-change-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.policy-change-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.policy-change-section h4 i {
    color: #007bff;
}

.policy-change-explanation {
    margin-top: 1.5rem;
}

.change-scenario-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.change-scenario-card h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.change-scenario-card h5 i {
    color: #007bff;
}

.change-scenario-card p {
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.change-impact-table {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.impact-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.impact-comparison-table thead {
    background: #003366;
    color: white;
}

.impact-comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    color: white !important;
}

.impact-comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
    vertical-align: top;
}

.impact-comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.impact-comparison-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.change-constraint-card,
.change-exception-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.change-constraint-card h5,
.change-exception-card h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.change-constraint-card h5 i {
    color: #dc3545;
}

.change-exception-card h5 i {
    color: #ffc107;
}

.change-constraint-card ul,
.change-exception-card ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #495057;
    line-height: 1.8;
}

.change-constraint-card li,
.change-exception-card li {
    margin: 0.75rem 0;
}

.change-exception-card p {
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .methods-overview,
    .data-summary,
    .impact-analysis,
    .strategy-section {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    .actual-value {
        font-size: 1.8rem;
    }
    
    .method-name-large {
        font-size: 1.4rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .next-step,
    .show-all {
        margin: 15px auto;
        display: block;
        width: fit-content;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .flow-step {
        width: 100%;
    }
    
    .impact-comparison-table {
        font-size: 0.85rem;
    }
    
    .impact-comparison-table th,
    .impact-comparison-table td {
        padding: 0.5rem;
    }
}

/* Step 7 - Interactive Grid Layout */
.step7-interactive-section {
    margin: 2rem 0;
}

.step7-question-header {
    background: linear-gradient(135deg, #003366 0%, #001f3f 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.step7-question-header i {
    font-size: 1.5rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.reason-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #003366 0%, #001f3f 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #003366;
}

.reason-card:hover::before {
    transform: scaleY(1);
}

.reason-card.active {
    border-color: #003366;
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
}

.reason-card.active::before {
    transform: scaleY(1);
}

.reason-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #003366 0%, #001f3f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.reason-card:hover .reason-icon {
    transform: scale(1.1) rotate(5deg);
}

.reason-icon i {
    font-size: 1.8rem;
    color: white;
}

.reason-card h5 {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.reason-summary {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.reason-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.reason-card.active .reason-details {
    max-height: 300px;
    padding-top: 1rem;
}

.reason-details p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Step 7 Bottom Section - Compact Cards */
.step7-bottom-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.insight-compact-card,
.limitation-compact-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.insight-compact-card {
    border-top: 4px solid #ffc107;
}

.limitation-compact-card {
    border-top: 4px solid #dc3545;
}

.insight-header,
.limitation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.insight-header i {
    color: #ffc107;
    font-size: 1.3rem;
}

.limitation-header i {
    color: #dc3545;
    font-size: 1.3rem;
}

.insight-items,
.limitation-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-item,
.limitation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
    transition: background 0.2s ease;
}

.insight-item:hover,
.limitation-item:hover {
    background: #e9ecef;
}

.insight-item i {
    color: #ffc107;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.limitation-item {
    color: #721c24;
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .step7-bottom-section {
        grid-template-columns: 1fr;
    }
    
    .step7-question-header {
        font-size: 1rem;
        padding: 1rem;
    }
}

