/* Onboarding Card Styles */

.onboarding-card {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
    pointer-events: none;
}

.onboarding-card.minimized {
    width: auto;
    min-width: 200px;
}

.onboarding-card.minimized .onboarding-card-header {
    border-bottom: none;
}

.onboarding-card.hidden {
    display: none;
}

.onboarding-card.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.onboarding-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.onboarding-card-minimize,
.onboarding-card-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-card-minimize:hover,
.onboarding-card-close:hover {
    color: #374151;
}

.onboarding-card-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.onboarding-card.minimized .onboarding-card-body {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    overflow: hidden;
}

.onboarding-step {
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.onboarding-step.current {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.onboarding-step.completed {
    opacity: 0.7;
}

.onboarding-step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.onboarding-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.onboarding-step.completed .onboarding-step-number {
    display: none;
}

.onboarding-step-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
}

.onboarding-step-link:hover {
    text-decoration: underline;
}

.onboarding-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, border 0.3s ease;
}

.onboarding-card.minimized .onboarding-card-footer {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    overflow: hidden;
    border-top: none;
}

.onboarding-card-footer button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .onboarding-card {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

/* High contrast mode support */
.hc .onboarding-card {
    border: 2px solid #000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hc .onboarding-step.current {
    background-color: #000;
    color: #fff;
    border-left: 4px solid #fff;
}

.hc .onboarding-step-link {
    color: #000;
}

.hc .onboarding-step.current .onboarding-step-link {
    color: #fff !important;
}

/* Ensure all text inside current step is white (pre-invert) to appear black after inversion */
.hc .onboarding-step.current,
.hc .onboarding-step.current *,
.hc .onboarding-step.current .onboarding-step-link,
.hc .onboarding-step.current a {
    color: #fff !important;
}

