/* CalWhat Calculator Platform - SkincareCalculator Specific Styles */
/* This file contains calculator-specific styles */


   

    /* 快速範本按鈕 */
    .template-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        margin-top: 15px;
    }

    .btn-template {
        padding: 12px 16px;
        border: 2px solid #667eea;
        background: white;
        border-radius: 12px;
        color: #667eea;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

    .btn-template:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .btn-template:active {
        transform: translateY(0);
    }

    /* 輸入欄位 */
    .input-group-custom {
        margin-bottom: 20px;
    }

    .input-label {
        font-weight: 500;
        color: #4a5568;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
    }

    .input-label i {
        color: #667eea;
    }

    .tooltip-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #667eea;
        color: white;
        font-size: 0.7rem;
        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.85rem;
        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;
    }

    .form-input, .form-select {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #48bb78;
        border-radius: 12px;
        font-size: 1rem;
        font-family: 'Roboto Mono', monospace;
        transition: all 0.3s ease;
        background: #f0fff4;
    }

    .form-input:focus, .form-select: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;
    }

    /* 結果區域 */
    .result-card {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    }

    .result-main {
        text-align: center;
        padding: 30px 20px;
        margin-bottom: 20px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .result-label {
        font-size: 1rem;
        color: #4a5568;
        font-weight: 500;
        margin-bottom: 10px;
    }

    .result-value {
        font-family: 'Roboto Mono', monospace;
        font-size: 3.5rem;
        font-weight: 700;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: pulse 0.5s ease;
    }

    .gradient-text {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .result-sublabel {
        font-size: 1.1rem;
        color: #718096;
        margin-top: 10px;
        font-weight: 500;
    }

    .result-highlight {
        text-align: center;
        padding: 20px;
        background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .result-highlight .result-label {
        color: white;
        margin-bottom: 5px;
    }

    .result-value-small {
        font-family: 'Roboto Mono', monospace;
        font-size: 2rem;
        font-weight: 700;
        color: white;
    }

    .result-details {
        background: #f7fafc;
        padding: 20px;
        border-radius: 12px;
        margin-top: 20px;
    }

    .result-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .result-item:last-child {
        border-bottom: none;
    }

    .result-item-label {
        font-size: 0.95rem;
        color: #4a5568;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .result-item-label i {
        color: #667eea;
    }

    .result-item-value {
        font-family: 'Roboto Mono', monospace;
        font-weight: 600;
        color: #2d3748;
        font-size: 1.05rem;
    }

    /* 警示訊息 */
    .alert {
        padding: 15px 20px;
        border-radius: 12px;
        margin-bottom: 20px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        line-height: 1.6;
    }

    .alert-success {
        background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
        color: white;
    }

    .alert-warning {
        background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
        color: white;
    }

    .alert i {
        margin-top: 2px;
    }

    /* 分裝建議 */
    .travel-pack-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 15px;
    }

    .pack-item {
        background: #f7fafc;
        padding: 15px;
        border-radius: 10px;
        border: 2px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .pack-item:hover {
        border-color: #667eea;
        transform: translateY(-2px);
    }

    .pack-item span:first-child {
        font-size: 0.9rem;
        color: #4a5568;
        font-weight: 500;
    }

    .pack-item span:last-child {
        font-family: 'Roboto Mono', monospace;
        font-size: 1.2rem;
        font-weight: 700;
        color: #667eea;
    }

    /* 按鈕 */
    .btn-custom, .btn-custom-outline {
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
        border: none;
    }

    /* 進階選項摺疊 */
    .advanced-toggle {
        cursor: pointer;
        color: #667eea;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
        transition: color 0.3s ease;
    }

    .advanced-toggle:hover {
        color: #764ba2;
    }

    .advanced-toggle i {
        transition: transform 0.3s ease;
    }

    .advanced-toggle.active i {
        transform: rotate(180deg);
    }

    .advanced-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .advanced-content.show {
        max-height: 500px;
    }

    /* 動畫 */
    @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); }
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-10px); }
        75% { transform: translateX(10px); }
    }

    .form-input.error, .form-select.error {
        border-color: #ef4444;
        animation: shake 0.5s ease;
    }

    /* 響應式設計 */
    @media (max-width: 992px) {
        .page-header h1 {
            font-size: 2.5rem;
        }
    }

    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 2rem;
        }

        .result-value {
            font-size: 2.5rem;
        }

        .result-value-small {
            font-size: 1.5rem;
        }

        .template-buttons {
            grid-template-columns: repeat(2, 1fr);
        }

        .travel-pack-info {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 480px) {
        .page-header h1 {
            font-size: 1.6rem;
        }

        .main-container {
            padding: 0 10px;
        }

        .glass-card {
            padding: 15px;
        }
    }