/* CalWhat Calculator Platform - StockTradingCostCalculator Specific Styles */
/* This file contains calculator-specific styles */
   

    .card-header {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid #e2e8f0;
    }

    .card-header i {
        font-size: 1.8rem;
        margin-right: 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .card-header h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #2d3748;
        margin: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: flex;
        align-items: center;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

    .form-group label i {
        margin-right: 8px;
        color: #667eea;
    }

    .tooltip-icon {
        margin-left: 8px;
        color: #a0aec0;
        cursor: help;
        font-size: 0.9rem;
    }

    .form-input,
    .form-select {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #48bb78;
        border-radius: 12px;
        font-size: 1rem;
        transition: all 0.3s ease;
        font-family: 'Roboto Mono', monospace;
        background: white;
    }

    .form-input:focus,
    .form-select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .result-item {
        background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
        padding: 20px;
        border-radius: 15px;
        margin-bottom: 15px;
        border-left: 4px solid #667eea;
    }

    .result-item.profit {
        border-left-color: #48bb78;
    }

    .result-item.loss {
        border-left-color: #f56565;
    }

    .result-label {
        font-size: 0.9rem;
        color: #718096;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
    }

    .result-label i {
        margin-right: 8px;
        color: #667eea;
    }

    .result-value {
        font-size: 2rem;
        font-weight: 700;
        color: #2d3748;
        font-family: 'Roboto Mono', monospace;
    }

    .result-value.profit {
        color: #48bb78;
    }

    .result-value.loss {
        color: #f56565;
    }

    .result-unit {
        font-size: 1rem;
        color: #a0aec0;
        margin-left: 8px;
    }

    .fee-breakdown {
        background: white;
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 10px;
        border: 2px solid #e2e8f0;
    }

    .fee-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .fee-row:last-child {
        border-bottom: none;
        font-weight: 700;
        color: #2d3748;
    }

    .fee-label {
        color: #4a5568;
    }

    .fee-value {
        font-family: 'Roboto Mono', monospace;
        color: #667eea;
    }

    .tips-list {
        list-style: none;
        padding: 0;
    }

    .tips-list li {
        padding: 10px 0;
        color: #4a5568;
        line-height: 1.6;
    }

    #stockChart {
        max-height: 350px;
        margin-top: 20px;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 2rem;
        }

        .page-header .subtitle {
            font-size: 1rem;
        }

        .glass-card {
            padding: 20px;
        }

        .result-value {
            font-size: 1.5rem;
        }
    }

    section {
        margin-top: 60px;
        padding: 40px 30px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    section h2, section h3 {
        color: #2d3748;
        margin-top: 30px;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

    section h2 i, section h3 i {
        margin-right: 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    section p, section li {
        color: #4a5568;
        line-height: 1.8;
        margin-bottom: 15px;
    }

    section ul, section ol {
        margin-left: 25px;
        margin-bottom: 20px;
    }

    /* 券商折扣快選按鈕 */
    .discount-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin: 15px 0;
    }

    .discount-btn {
        flex: 1;
        min-width: 80px;
        padding: 12px 16px;
        background: white;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        color: #4a5568;
        font-size: 0.95rem;
    }

    .discount-btn:hover {
        border-color: #667eea;
        background: #f7fafc;
        transform: translateY(-2px);
    }

    .discount-btn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
    }

    .discount-btn.hot::after {
        content: " 🔥";
    }

    .discount-info {
        font-size: 0.85rem;
        color: #718096;
        margin-top: 8px;
        padding: 8px 12px;
        background: #f7fafc;
        border-radius: 6px;
        border-left: 3px solid #667eea;
    }

    /* 快速目標設定按鈕 */
    .quick-calc-row {
        margin-top: 15px;
        padding: 15px;
        background: #f7fafc;
        border-radius: 10px;
        border: 2px solid #e2e8f0;
    }

    .quick-calc-row label {
        display: block;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .quick-calc-row label i {
        margin-right: 6px;
        color: #667eea;
    }

    .quick-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .quick-btn {
        flex: 1;
        min-width: 70px;
        padding: 10px 14px;
        background: white;
        border: 2px solid #48bb78;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        color: #48bb78;
        font-size: 0.9rem;
    }

    .quick-btn:hover {
        background: #48bb78;
        color: white;
        transform: translateY(-2px);
    }

    .quick-btn.loss {
        border-color: #f56565;
        color: #f56565;
    }

    .quick-btn.loss:hover {
        background: #f56565;
        color: white;
    }

    /* 警告卡片樣式 */
    .warning-box {
        background: #fff5f5;
        border: 2px solid #fc8181;
        border-radius: 10px;
        padding: 12px 15px;
        margin-top: 10px;
        display: none;
    }

    .warning-box.show {
        display: block;
        animation: shake 0.5s ease;
    }

    .warning-box i {
        color: #f56565;
        margin-right: 8px;
    }

    .warning-box p {
        margin: 0;
        color: #742a2a;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .warning-box .warning-detail {
        margin-top: 5px;
        font-size: 0.85rem;
        color: #9b2c2c;
        font-weight: normal;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }

    @media (max-width: 768px) {
        .discount-btn, .quick-btn {
            min-width: 60px;
            padding: 10px 12px;
            font-size: 0.85rem;
        }
    }