/* CalWhat Calculator Platform - StudyPlannerCalculator Specific Styles */
/* This file contains calculator-specific styles */


    :root {
        --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --success-color: #48bb78;
        --warning-color: #f59e0b;
        --danger-color: #ef4444;
    }

  
    /* 輸入框樣式 */
    .form-input {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid var(--success-color);
        border-radius: 12px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: white;
    }

    .form-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .input-label {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .input-group-custom {
        margin-bottom: 20px;
    }

    .input-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

    /* Tooltip */
    .tooltip-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border-radius: 50%;
        font-size: 12px;
        cursor: help;
        position: relative;
    }

    .tooltip-icon .tooltip-text {
        visibility: hidden;
        background-color: #2d3748;
        color: white;
        text-align: center;
        padding: 8px 12px;
        border-radius: 8px;
        position: absolute;
        z-index: 1000;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.3s;
        font-weight: normal;
    }

    .tooltip-icon:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* 科目列表 */
    .subject-item {
        background: #f7fafc;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px;
        position: relative;
    }

    .subject-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .subject-number {
        background: var(--primary-gradient);
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }

    .remove-subject-btn {
        background: var(--danger-color);
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }

    .remove-subject-btn:hover {
        background: #dc2626;
        transform: scale(1.05);
    }

    /* 按鈕樣式 */
    .btn-add-subject {
        background: var(--success-color);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
    }

    .btn-add-subject:hover {
        background: #38a169;
        transform: scale(1.02);
    }

    /* 結果顯示 */
    .result-card {
        background: var(--primary-gradient);
        color: white;
        padding: 25px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .result-main {
        text-align: center;
        margin-bottom: 20px;
    }

    .result-label {
        font-size: 1.1rem;
        opacity: 0.9;
        margin-bottom: 10px;
    }

    .result-value {
        font-size: 2.5rem;
        font-weight: 700;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .result-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .result-item {
        background: rgba(255, 255, 255, 0.2);
        padding: 15px;
        border-radius: 12px;
        text-align: center;
    }

    .result-item-label {
        font-size: 0.9rem;
        opacity: 0.9;
        margin-bottom: 5px;
    }

    .result-item-value {
        font-size: 1.5rem;
        font-weight: 700;
    }

    /* 讀書計畫表 */
    .study-plan-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .study-plan-table th {
        background: var(--primary-gradient);
        color: white;
        padding: 12px;
        text-align: left;
        font-weight: 600;
    }

    .study-plan-table td {
        padding: 12px;
        border-bottom: 1px solid #e2e8f0;
    }

    .study-plan-table tr:hover {
        background: #f7fafc;
    }

    .progress-bar {
        background: #e2e8f0;
        border-radius: 10px;
        height: 8px;
        overflow: hidden;
        margin: 5px 0;
    }

    .progress-fill {
        background: var(--success-color);
        height: 100%;
        transition: width 0.3s ease;
    }

    /* 番茄鐘計時器 */
    .pomodoro-timer {
        text-align: center;
        padding: 30px;
    }

    .timer-display {
        font-size: 4rem;
        font-weight: 700;
        color: #667eea;
        margin: 20px 0;
        font-family: 'Courier New', monospace;
    }

    .timer-controls {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 20px;
    }

    .timer-btn {
        padding: 12px 30px;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .timer-btn-start {
        background: var(--success-color);
        color: white;
    }

    .timer-btn-pause {
        background: var(--warning-color);
        color: white;
    }

    .timer-btn-reset {
        background: var(--danger-color);
        color: white;
    }

    /* 警告訊息 */
    .warning-box {
        background: #fef3c7;
        border-left: 4px solid var(--warning-color);
        padding: 15px;
        border-radius: 8px;
        margin: 15px 0;
    }

    .warning-box.danger {
        background: #fee2e2;
        border-left-color: var(--danger-color);
    }

    .warning-box.success {
        background: #d1fae5;
        border-left-color: var(--success-color);
    }

    /* 學習建議 */
    .tips-list {
        list-style: none;
        padding: 0;
    }

    .tips-list li {
        padding: 12px;
        margin: 8px 0;
        background: #f0fdf4;
        border-left: 4px solid var(--success-color);
        border-radius: 8px;
    }

    .tips-list li:before {
        content: "✓ ";
        color: var(--success-color);
        font-weight: 700;
        margin-right: 10px;
    }

    /* 即時學習統計 */
    .live-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .live-stat-card {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: transform 0.3s ease;
    }

    .live-stat-card:hover {
        transform: translateY(-5px);
    }

    .live-stat-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .live-stat-value {
        font-size: 2rem;
        font-weight: 700;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .live-stat-label {
        font-size: 0.9rem;
        color: #718096;
        margin-top: 5px;
    }

    /* 響應式設計 */
    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 2rem;
        }

        .timer-display {
            font-size: 3rem;
        }

        .result-value {
            font-size: 2rem;
        }

        .input-row {
            grid-template-columns: 1fr;
        }

        .live-stats-grid {
            grid-template-columns: 1fr;
        }
    }

    /* 動畫效果 */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes popIn {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0.6;
        }
    }