/* ============================================================
   FILE: css/smart-features.css
   Styles cho 44 Smart Features
   ============================================================ */

/* ============================================================
   QUICK ACTIONS BAR
   ============================================================ */
.quick-actions-bar {
    animation: slideDown 0.5s ease-out;
}

.quick-action-btn {
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3) !important;
}

/* ============================================================
   POMODORO TIMER
   ============================================================ */
.pomodoro-widget {
    animation: fadeIn 0.5s ease-out;
}

#pomodoro-timer-display {
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

/* ============================================================
   PRODUCTIVITY SCORE
   ============================================================ */
.productivity-widget {
    animation: slideUp 0.5s ease-out;
}

/* ============================================================
   FOCUS SOUNDS
   ============================================================ */
.focus-sound-btn {
    transition: all 0.3s ease;
}

.focus-sound-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
}

.focus-sound-btn.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ============================================================
   WEEKLY HEATMAP
   ============================================================ */
.weekly-heatmap > div > div {
    transition: all 0.3s ease;
}

.weekly-heatmap > div > div:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* ============================================================
   FOCUS CHALLENGES
   ============================================================ */
.focus-challenges .goal-progress-fill {
    transition: width 0.5s ease-out;
}

/* ============================================================
   PROMPT LIBRARY
   ============================================================ */
.prompt-item {
    transition: all 0.2s ease;
}

.prompt-item:hover {
    background: #e5e7eb !important;
    transform: translateX(5px);
}

/* ============================================================
   BATCH OPERATIONS BAR
   ============================================================ */
.batch-operations-bar {
    animation: slideDown 0.3s ease-out;
}

.batch-btn {
    transition: all 0.2s ease;
}

.batch-btn:hover {
    transform: translateY(-2px);
}

/* ============================================================
   TASK TEMPLATES
   ============================================================ */
.template-btn {
    transition: all 0.2s ease;
}

.template-btn:hover {
    transform: scale(1.05);
}

/* ============================================================
   MORNING BRIEFING
   ============================================================ */
.morning-briefing {
    animation: fadeIn 0.8s ease-out;
}

/* ============================================================
   CONFLICTS WARNING
   ============================================================ */
.conflicts-warning {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================================
   SMART DATE INPUT
   ============================================================ */
.smart-date-input {
    transition: border-color 0.3s ease;
}

.smart-date-input:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ============================================================
   DEEP WORK MODE OVERLAY
   ============================================================ */
#deep-work-overlay {
    animation: fadeIn 0.5s ease-out;
}

#deep-work-overlay button {
    transition: all 0.2s ease;
}

#deep-work-overlay button:hover {
    transform: scale(1.05);
}

/* ============================================================
   USAGE ANALYTICS
   ============================================================ */
.usage-analytics {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================================
   RESPONSE HISTORY
   ============================================================ */
.history-item {
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #e5e7eb !important;
    transform: translateX(5px);
}

/* ============================================================
   MEETING FINDER
   ============================================================ */
.slot-option {
    transition: all 0.2s ease;
}

.slot-option:hover {
    background: #e5e7eb !important;
}

/* ============================================================
   TIME BLOCK SUGGESTIONS
   ============================================================ */
.time-block-suggestions {
    animation: slideUp 0.5s ease-out;
}

.suggestion-item {
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    transform: translateX(5px);
}

/* ============================================================
   VOICE INPUT BUTTON
   ============================================================ */
#voice-input-btn {
    animation: pulse 2s infinite;
}

#voice-input-btn.recording {
    animation: recording 1s infinite;
}

@keyframes recording {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* ============================================================
   SESSION NOTES
   ============================================================ */
.session-notes {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .quick-actions-bar {
        flex-direction: column;
    }
    
    .quick-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .batch-operations-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-operations-bar span {
        text-align: center;
        margin-bottom: 10px;
    }
}
