/* === WELCOME MESSAGE COMPONENT === */

.welcome-message {
    position: fixed;
    top: 90px; /* IMPORTANT: Position it below the floating navbar */
    right: var(--space-lg);
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-base); /* Reduced padding */
    box-shadow: var(--shadow-xl); /* Increased shadow for better visibility */
    border: 1px solid var(--border-color);
    z-index: 1040; /* Lower than navbar's 1050, but high enough for content */
    max-width: 320px; /* More compact width */
    transform: translateX(calc(100% + var(--space-lg))); /* Start off-screen */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother transition */
    backdrop-filter: blur(10px);
}

.welcome-message.show {
    transform: translateX(0);
    opacity: 1;
}

.welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-base);
}

.welcome-title {
    color: var(--primary);
    font-size: var(--font-size-base); /* Was lg */
    font-weight: var(--font-weight-semibold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.welcome-title i {
    font-size: var(--font-size-xl);
    animation: pulse 2s infinite;
}

.welcome-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition-colors);
}

.welcome-close:hover {
    color: var(--text-primary);
    background: rgba(var(--text-secondary), 0.1);
}

.welcome-content {
    color: var(--text-primary);
    line-height: 1.5; /* Tighter line-height */
    margin-bottom: var(--space-base); /* Reduced margin */
    font-size: var(--font-size-sm); /* Added for smaller text */
}

.welcome-content p {
    margin: 0 0 var(--space-sm);
}

.welcome-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

.welcome-btn {
    padding: var(--space-sm) var(--space-base);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-all);
    border: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.welcome-btn.primary {
    background: var(--primary);
    color: white;
}

.welcome-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.welcome-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.welcome-btn.secondary:hover {
    color: var(--text-primary);
    background: rgba(var(--text-secondary), 0.05);
}

/* Welcome Animation */
@keyframes welcomeSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.welcome-message.animate {
    animation: welcomeSlideIn 0.5s ease-out;
}

/* Progress Dots */
.welcome-progress {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin: var(--space-base) 0;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-circle);
    background: var(--border-color);
    transition: var(--transition-colors);
}

.progress-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Welcome Steps */
.welcome-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.welcome-step.active {
    display: block;
}

.welcome-step-counter {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    text-align: center;
    margin-bottom: var(--space-sm);
}

/* Feature Highlights */
.feature-highlight {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin: var(--space-sm) 0;
    border-left: 3px solid var(--primary);
}

.feature-highlight-title {
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-sm);
}

.feature-highlight-text {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-message {
        top: auto; /* Unset the desktop top value */
        bottom: calc(var(--space-lg) + 60px); /* Position from bottom, above PWA prompt */
        right: var(--space-base);
        left: var(--space-base);
        max-width: none;
        width: auto;
        transform: translateY(200px); /* Animate from bottom on mobile */
        z-index: var(--z-popover); /* Ensure it's on top */
    }

    .welcome-message.show {
        transform: translateY(0);
    }

    .welcome-actions {
        flex-direction: column;
    }

    .welcome-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .welcome-message {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature-highlight {
    background: rgba(var(--primary-rgb), 0.1);
}
