/* CalWhat Calculator Platform - PregnancyCalculator Specific Styles */
/* This file contains calculator-specific styles */


  

    .input-group-custom {
        margin-bottom: 12px;
    }

    .input-label {
        font-weight: 500;
        color: #4a5568;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
        position: relative;
    }

    .tooltip-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #ff6b9d;
        color: white;
        font-size: 0.7rem;
        cursor: help;
        margin-left: 5px;
        position: relative;
    }

        .tooltip-icon:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

    .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-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #2d3748 transparent transparent transparent;
        }

    .input-wrapper {
        position: relative;
    }

    .form-input {
        width: 100%;
        padding: 12px 55px 12px 15px;
        border: 2px solid #ff6b9d;
        border-radius: 12px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: white;
        font-family: 'Roboto Mono', monospace;
    }

        .form-input:focus {
            outline: none;
            border-color: #c44569;
            box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
        }

    .input-unit {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #718096;
        font-weight: 500;
        pointer-events: none;
    }


    /* 輸入方式選擇器 */
    .input-method-selector {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 15px;
    }

    .method-option {
        cursor: pointer;
        position: relative;
    }

        .method-option input[type="radio"] {
            position: absolute;
            opacity: 0;
        }

        .method-option .method-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 20px 15px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            background: white;
            transition: all 0.3s ease;
        }

            .method-option .method-label i {
                font-size: 2rem;
                color: #cbd5e0;
                margin-bottom: 10px;
                transition: all 0.3s ease;
            }

            .method-option .method-label strong {
                font-size: 1rem;
                color: #2d3748;
                margin-bottom: 5px;
            }

            .method-option .method-label small {
                font-size: 0.75rem;
                color: #718096;
            }

        .method-option input[type="radio"]:checked + .method-label {
            border-color: #ff6b9d;
            background: linear-gradient(135deg, #fff0f5 0%, #ffe5ec 100%);
        }

            .method-option input[type="radio"]:checked + .method-label i {
                color: #ff6b9d;
            }

        .method-option:hover .method-label {
            border-color: #ff6b9d;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
        }

    @media (max-width: 576px) {
        .input-method-selector {
            grid-template-columns: 1fr;
        }
    }

    .result-item {
        margin-bottom: 20px;
        padding: 15px;
        background: linear-gradient(135deg, #fff0f5 0%, #ffe5ec 100%);
        border-radius: 12px;
        border-left: 4px solid #ff6b9d;
    }

    .result-label {
        font-size: 0.9rem;
        color: #718096;
        margin-bottom: 5px;
        font-weight: 500;
    }

    .result-value {
        font-family: 'Roboto Mono', monospace;
        font-size: 1.8rem;
        font-weight: 700;
        color: #c44569;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .result-unit {
        font-size: 1rem;
        color: #718096;
        font-weight: 500;
    }

    .timeline {
        position: relative;
        padding: 20px 0;
    }

    .timeline-item {
        position: relative;
        padding: 15px 0 15px 40px;
        border-left: 2px solid #ff6b9d;
        margin-bottom: 15px;
    }

        .timeline-item::before {
            content: "";
            position: absolute;
            left: -8px;
            top: 20px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #ff6b9d;
            border: 3px solid white;
        }

        .timeline-item.active::before {
            background: #c44569;
            box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.2);
        }

    .timeline-title {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 5px;
    }

    .timeline-desc {
        color: #718096;
        font-size: 0.9rem;
    }

    .info-box {
        background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
        border: 2px solid #4dd0e1;
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
    }

        .info-box p {
            color: #006064;
            font-weight: 500;
            margin-bottom: 8px;
        }

    .warning-box {
        background: linear-gradient(135deg, #fff3cd 0%, #fff3cd 100%);
        border: 2px solid #ffc107;
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
    }

        .warning-box p {
            color: #856404;
            font-weight: 500;
            margin-bottom: 8px;
        }

    /* 分級警示樣式 */
    .alert-danger {
        background: linear-gradient(135deg, #fee 0%, #fdd 100%);
        border-left: 5px solid #dc3545;
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
    }

        .alert-danger h5 {
            color: #dc3545;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .alert-danger ul {
            color: #721c24;
            margin: 0;
            padding-left: 20px;
            line-height: 1.8;
        }

        .alert-danger li {
            margin-bottom: 6px;
        }

    .alert-warning {
        background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
        border-left: 5px solid #f59e0b;
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
    }

        .alert-warning h5 {
            color: #f59e0b;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .alert-warning ul {
            color: #856404;
            margin: 0;
            padding-left: 20px;
            line-height: 1.8;
        }

        .alert-warning li {
            margin-bottom: 6px;
        }

    .alert-info {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border-left: 5px solid #2196f3;
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
    }

        .alert-info h5 {
            color: #2196f3;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .alert-info ul {
            color: #01579b;
            margin: 0;
            padding-left: 20px;
            line-height: 1.8;
        }

        .alert-info li {
            margin-bottom: 6px;
        }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 2rem;
        }

        .result-value {
            font-size: 1.5rem;
        }
    }