/* Session Card Styles */
#activeSessionCard {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
}

#activeSessionCard .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#activeSessionCard .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

#activeSessionCard .session-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#activeSessionCard .session-habit {
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease;
}

#activeSessionCard .session-habit::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
}

#activeSessionCard .session-habit.loading {
    color: var(--color-text-secondary);
}

#activeSessionCard .session-habit.loading::before {
    border-color: var(--color-primary);
    border-right-color: transparent;
    animation: rotate 1s linear infinite;
}

#activeSessionCard .session-habit.error {
    color: var(--color-error);
}

#activeSessionCard .session-habit.error::before {
    border-color: var(--color-error);
    background-color: var(--color-error-light);
}

#activeSessionCard .session-habit.linked {
    color: var(--color-success);
}

#activeSessionCard .session-habit.linked::before {
    border-color: var(--color-success);
    background-color: var(--color-success);
}

@keyframes rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

#activeSessionCard .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-text-secondary);
}

#activeSessionCard .status-indicator.idle {
    background-color: var(--color-text-secondary);
}

#activeSessionCard .status-indicator.active {
    background-color: var(--color-primary);
    animation: pulse 2s infinite;
}

/* Timer Display Section */
#activeSessionCard .timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

#activeSessionCard .timer-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

#activeSessionCard .timer-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
}

#activeSessionCard .timer-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Timer Controls Section */
#activeSessionCard .timer-controls-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

#activeSessionCard .timer-btn {
    min-width: 100px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#activeSessionCard .timer-btn:hover {
    transform: translateY(-2px);
}

/* Habit Selection Section */
#activeSessionCard .habit-selection-section {
    margin: 1.5rem 0;
    text-align: center;
}

#activeSessionCard .habit-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

#activeSessionCard .habit-select {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
}

/* Session Progress */
#activeSessionCard .session-progress {
    margin-top: 1.5rem;
    text-align: center;
}

#activeSessionCard .progress-bar {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#activeSessionCard .progress-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

#activeSessionCard .progress-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(var(--color-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #activeSessionCard {
        padding: 1.5rem;
    }

    #activeSessionCard .timer-circle {
        width: 150px;
        height: 150px;
    }

    #activeSessionCard .timer-time {
        font-size: 2.5rem;
    }

    #activeSessionCard .timer-controls-section {
        flex-direction: column;
        align-items: center;
    }

    #activeSessionCard .timer-btn {
        width: 100%;
        max-width: 200px;
    }
}