/* ============================================
   THIKAA ONBOARDING WIZARD & CHECKLIST
   ============================================ */

/* --- WIZARD MODAL OVERLAY --- */
.tk-onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tkOnboardFadeIn 0.3s ease;
}

.tk-onboarding-overlay.tk-onboarding-closing {
    animation: tkOnboardFadeOut 0.3s ease forwards;
}

@keyframes tkOnboardFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tkOnboardFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- WIZARD MODAL --- */
.tk-onboarding-modal {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 560px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: tkOnboardSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes tkOnboardSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tk-onboarding-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tk-onboarding-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

/* --- HEADER --- */
.tk-onboarding-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 50%, #25D366 100%);
    padding: 40px 32px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tk-onboarding-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: tkOnboardPulse 4s ease-in-out infinite;
}

@keyframes tkOnboardPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.tk-onboarding-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
}

.tk-onboarding-header h2 {
    color: white;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    position: relative;
}

.tk-onboarding-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
    position: relative;
}

/* --- STEPS --- */
.tk-onboarding-steps {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tk-onboarding-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
}

.tk-onboarding-step:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tk-onboarding-step.tk-step-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.tk-step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #075E54;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.tk-step-done .tk-step-number {
    background: #22c55e;
}

.tk-step-content {
    flex: 1;
    min-width: 0;
}

.tk-step-content .tk-step-icon {
    display: none;
}

.tk-step-content h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.tk-step-content p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.tk-step-action {
    flex-shrink: 0;
}

.tk-step-btn {
    background: #075E54;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.tk-step-btn:hover {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 94, 84, 0.3);
}

.tk-step-completed {
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- FOOTER --- */
.tk-onboarding-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

.tk-onboarding-skip {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
    padding: 8px 16px;
}

.tk-onboarding-skip:hover {
    color: #64748b;
}

/* ============================================
   DASHBOARD SETUP CHECKLIST WIDGET
   ============================================ */

.tk-setup-checklist {
    margin: 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.tk-checklist-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}

.tk-checklist-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tk-checklist-title i {
    color: #075E54;
}

.tk-checklist-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tk-checklist-bar {
    width: 100px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.tk-checklist-fill {
    height: 100%;
    background: linear-gradient(90deg, #075E54, #25D366);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.tk-checklist-progress span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.tk-checklist-items {
    padding: 8px 16px;
}

.tk-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

.tk-check-item:last-child {
    border-bottom: none;
}

.tk-check-item:not(.tk-item-done):hover {
    background: #f8fafc;
}

.tk-check-icon {
    font-size: 18px;
    color: #cbd5e1;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.tk-item-done .tk-check-icon {
    color: #22c55e;
}

.tk-check-label {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.tk-check-label i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
    color: #94a3b8;
}

.tk-item-done .tk-check-label {
    color: #94a3b8;
    text-decoration: line-through;
}

.tk-checklist-done {
    padding: 16px 20px;
    text-align: center;
    background: #f0fdf4;
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tk-checklist-done i {
    font-size: 18px;
}

.tk-checklist-dismiss {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.tk-checklist-dismiss:hover {
    background: #bbf7d0;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .tk-onboarding-modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .tk-onboarding-header {
        padding: 28px 20px 24px;
    }

    .tk-onboarding-header h2 {
        font-size: 22px;
    }

    .tk-onboarding-steps {
        padding: 16px;
    }

    .tk-onboarding-step {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }

    .tk-step-action {
        width: 100%;
        padding-left: 56px;
    }

    .tk-step-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .tk-setup-checklist {
        margin: 8px;
        border-radius: 12px;
    }
}
