/* CalWhat Calculator Platform - SalaryConverter Specific Styles */
/* This file contains calculator-specific styles */

    /* ========== 輸入欄位 ========== */
    .input-group-custom {
        margin-bottom: 25px;
    }

    .input-label {
        font-weight: 500;
        color: #4a5568;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
    }

    .input-label i {
        color: #667eea;
    }

    .form-input {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #48bb78;
        border-radius: 12px;
        font-size: 1.1rem;
        font-family: 'Roboto Mono', monospace;
        transition: all 0.3s ease;
        background: #f0fff4;
    }

    .form-input:focus {
        outline: none;
        border-color: #38a169;
        box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
        transform: translateY(-2px);
    }

    .input-range {
        font-size: 0.85rem;
        color: #718096;
        margin-top: 5px;
    }

    /* ========== Tooltip ========== */
    .tooltip-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #667eea;
        color: white;
        font-size: 0.75rem;
        cursor: help;
        position: relative;
        font-weight: 600;
    }

    .tooltip-text {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        z-index: 1000;
        bottom: 130%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #2d3748;
        color: white;
        text-align: center;
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 0.9rem;
        white-space: nowrap;
        transition: opacity 0.3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-weight: 400;
    }

    .tooltip-text::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #2d3748 transparent transparent transparent;
    }

    .tooltip-icon:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* ========== 薪資類型選擇 ========== */
    .salary-type-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }

    .salary-type-option {
        padding: 15px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        background: white;
    }

    .salary-type-option:hover {
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    }

    .salary-type-option.active {
        border-color: #667eea;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        font-weight: 600;
    }

    .salary-type-option input[type="radio"] {
        display: none;
    }

    /* ========== 結果卡片 ========== */
    .result-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 30px;
        border-radius: 20px;
        color: white;
        margin-bottom: 20px;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }

    .result-label {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 10px;
        opacity: 0.95;
    }

    .result-value {
        font-family: 'Roboto Mono', monospace;
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 10px;
        animation: pulse 0.5s ease;
    }

    .result-subtext {
        font-size: 0.95rem;
        opacity: 0.9;
    }

    /* ========== 詳細結果 ========== */
    .result-details {
        background: #f7fafc;
        padding: 25px;
        border-radius: 15px;
        margin-top: 20px;
    }

    .result-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .result-item:last-child {
        border-bottom: none;
    }

    .result-item-label {
        font-size: 1rem;
        color: #4a5568;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .result-item-label i {
        color: #667eea;
        font-size: 1.2rem;
    }

    .result-item-value {
        font-family: 'Roboto Mono', monospace;
        font-weight: 600;
        color: #2d3748;
        font-size: 1.3rem;
    }

    /* ========== 按鈕 ========== */

    .btn-custom:not(.btn-custom-outline):not(.btn-sponsor) {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .btn-custom:not(.btn-custom-outline):not(.btn-sponsor):hover {
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    }


    /* ========== 圖表容器 ========== */
    .chart-container {
        position: relative;
        height: 350px;
        margin-top: 20px;
    }

    /* ========== 動畫 ========== */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    /* ========== 響應式設計 ========== */
    @media (max-width: 992px) {
        .page-header h1 {
            font-size: 2.5rem;
        }
        .result-value {
            font-size: 2.5rem;
        }
    }

    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 2rem;
        }
        .result-value {
            font-size: 2rem;
        }
        .glass-card {
            padding: 20px;
        }
        .salary-type-options {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .salary-type-options {
            grid-template-columns: 1fr;
        }
    }