/* CalWhat Calculator Platform - DollarCostAveragingCalculator Specific Styles */
/* This file contains calculator-specific styles */

:root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --success-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        }

        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            font-family: 'Noto Sans TC', sans-serif;
        }

        .calculator-container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            padding: 40px;
            margin: 40px auto;
            max-width: 1400px;
        }

        .calculator-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 3px solid #667eea;
        }

        .calculator-title {
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .calculator-subtitle {
            color: #666;
            font-size: 1.1rem;
        }

        .card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .card-header {
            background: var(--primary-gradient);
            color: white;
            font-weight: 600;
            padding: 15px 20px;
            border: none;
        }

        .card-body {
            padding: 25px;
        }

        .form-label {
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .form-control, .form-select {
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            padding: 12px 15px;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .form-control:focus, .form-select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-suffix {
            background: #f8f9fa;
            border: 2px solid #e0e0e0;
            border-left: none;
            border-radius: 0 10px 10px 0;
            padding: 12px 15px;
            font-weight: 600;
            color: #666;
        }

        .result-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
            text-align: center;
        }

        .result-label {
            font-size: 0.95rem;
            opacity: 0.9;
            margin-bottom: 8px;
        }

        .result-value {
            font-size: 2.2rem;
            font-weight: 700;
            font-family: 'Roboto Mono', monospace;
        }

        .result-subvalue {
            font-size: 1.1rem;
            opacity: 0.85;
            margin-top: 5px;
        }

        .comparison-card {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 15px;
            border-left: 5px solid #667eea;
        }

        .comparison-title {
            font-weight: 600;
            color: #333;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .comparison-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding: 8px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .comparison-row:last-child {
            border-bottom: none;
        }

        .comparison-label {
            color: #666;
            font-size: 0.95rem;
        }

        .comparison-value {
            font-weight: 600;
            color: #333;
            font-family: 'Roboto Mono', monospace;
        }

        .scenario-card {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            transition: all 0.3s;
            cursor: pointer;
        }

        .scenario-card:hover {
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
        }

        .scenario-card.active {
            border-color: #667eea;
            background: #f8f9ff;
        }

        .scenario-rate {
            font-size: 1.5rem;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 5px;
        }

        .scenario-amount {
            font-size: 1.2rem;
            font-weight: 600;
            color: #333;
            font-family: 'Roboto Mono', monospace;
        }

        .scenario-profit {
            font-size: 0.9rem;
            color: #28a745;
            margin-top: 5px;
        }

        .btn-primary {
            background: var(--primary-gradient);
            border: none;
            border-radius: 10px;
            padding: 12px 30px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-outline-secondary {
            border: 2px solid #6c757d;
            border-radius: 10px;
            padding: 12px 30px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .chart-container {
            position: relative;
            height: 400px;
            margin: 20px 0;
        }

        .info-tooltip {
            display: inline-block;
            width: 18px;
            height: 18px;
            background: #667eea;
            color: white;
            border-radius: 50%;
            text-align: center;
            font-size: 12px;
            line-height: 18px;
            cursor: help;
            margin-left: 5px;
        }

        .tax-tip {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            border-left: 5px solid #ff6b6b;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }

        .tax-tip-title {
            font-weight: 700;
            color: #d63031;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .tax-tip-content {
            color: #555;
            line-height: 1.6;
        }

        .risk-warning {
            background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
            border-left: 5px solid #dc3545;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }

        .risk-warning-title {
            font-weight: 700;
            color: #dc3545;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .risk-warning-content {
            color: #555;
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .calculator-container {
                padding: 20px;
                margin: 20px;
            }

            .calculator-title {
                font-size: 1.8rem;
            }

            .result-value {
                font-size: 1.8rem;
            }

            .chart-container {
                height: 300px;
            }
        }

        .seo-content {
            margin-top: 60px;
            padding-top: 40px;
            border-top: 2px solid #e0e0e0;
        }

        .seo-content h2 {
            color: #667eea;
            font-weight: 700;
            margin-bottom: 20px;
            font-size: 1.8rem;
        }

        .seo-content h3 {
            color: #764ba2;
            font-weight: 600;
            margin-top: 30px;
            margin-bottom: 15px;
            font-size: 1.3rem;
        }

        .seo-content p {
            color: #555;
            line-height: 1.8;
            margin-bottom: 15px;
        }

        .seo-content ul {
            color: #555;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .seo-content li {
            margin-bottom: 10px;
        }