/* CalWhat Calculator Platform - PercentageCalculator Specific Styles */
/* This file contains calculator-specific styles */



        

        /* ========== 計算卡片網格 ========== */
        .calculator-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        /* ========== 輸入欄位 ========== */
        .input-group-custom {
            margin-bottom: 15px;
        }

        .input-label {
            font-weight: 500;
            color: #4a5568;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
        }

            .input-label i {
                color: #667eea;
                font-size: 0.85rem;
            }

        .form-input {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid #48bb78;
            border-radius: 10px;
            font-size: 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 3px rgba(72, 187, 120, 0.2);
                transform: translateY(-2px);
            }

            .form-input.error {
                border-color: #ef4444;
                animation: shake 0.5s ease;
            }

        /* ========== Tooltip ========== */
        .tooltip-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #667eea;
            color: white;
            font-size: 0.65rem;
            cursor: help;
            margin-left: 5px;
            position: relative;
        }

        .tooltip-text {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            z-index: 1000;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #2d3748;
            color: white;
            text-align: center;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.8rem;
            white-space: nowrap;
            transition: opacity 0.3s;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            font-weight: 400;
        }

        .tooltip-icon:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

        /* ========== 結果顯示（內嵌式） ========== */
        .result-inline {
            margin-top: 15px;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            text-align: center;
        }

        .result-value-inline {
            font-family: 'Roboto Mono', monospace;
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 8px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .result-description-inline {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.95);
            font-weight: 500;
            line-height: 1.4;
        }

        /* ========== 計算步驟區域 ========== */
        .calculation-steps {
            margin-top: 15px;
            padding: 15px;
            background: rgba(102, 126, 234, 0.05);
            border-left: 3px solid #667eea;
            border-radius: 8px;
            animation: slideDown 0.3s ease;
        }

        .steps-title {
            font-weight: 600;
            color: #667eea;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1rem;
        }

        .steps-content {
            color: #4a5568;
            line-height: 1.8;
        }

            .steps-content p {
                margin: 8px 0;
                padding-left: 20px;
                font-family: 'Roboto Mono', monospace;
                font-size: 0.9rem;
            }

        .expand-icon {
            font-size: 1rem;
            color: #667eea;
        }

        .calc-card.expanded .expand-icon {
            transform: rotate(180deg);
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                max-height: 0;
                padding-top: 0;
                padding-bottom: 0;
            }

            to {
                opacity: 1;
                max-height: 300px;
                padding-top: 15px;
                padding-bottom: 15px;
            }
        }

        /* ========== 按鈕區域 ========== */
        .button-section {
            margin-top: 30px;
        }


        /* ========== 動畫 ========== */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes shake {
            0%, 100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-5px);
            }

            75% {
                transform: translateX(5px);
            }
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        /* ========== 響應式設計 ========== */
        @media (max-width: 768px) {
            .page-header h1 {
                font-size: 2rem;
            }

            .page-header .subtitle {
                font-size: 0.95rem;
            }

            .calculator-grid {
                grid-template-columns: 1fr;
            }

            .glass-card {
                padding: 20px;
            }

            .result-value-inline {
                font-size: 2rem;
            }
        }

        /* ========== SEO 內容區 ========== */
        .seo-content {
            margin-top: 50px;
            padding: 40px 30px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

            .seo-content h2 {
                color: #2d3748;
                margin-bottom: 20px;
                font-size: 2rem;
                font-weight: 700;
            }

            .seo-content h3 {
                color: #2d3748;
                margin-top: 30px;
                margin-bottom: 15px;
                font-size: 1.5rem;
                font-weight: 600;
            }

            .seo-content p {
                color: #4a5568;
                line-height: 1.8;
                margin-bottom: 15px;
                font-size: 1rem;
            }

            .seo-content ul {
                margin-left: 25px;
                margin-bottom: 20px;
            }

                .seo-content ul li {
                    color: #4a5568;
                    line-height: 1.8;
                    margin-bottom: 10px;
                }

                    .seo-content ul li strong {
                        color: #667eea;
                    }