/* RenoPilot Onboarding Styles */

/* =====================
   SHEPHERD TOUR STYLES
   ===================== */

.shepherd-modal-overlay-container {
    background-color: rgba(0, 0, 0, 0.5);
}

.renopilot-tour-step {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    z-index: 10000;
}

.renopilot-tour-step .shepherd-content {
    padding: 0;
}

.renopilot-tour-step .shepherd-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
}

.renopilot-tour-step .shepherd-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.renopilot-tour-step .shepherd-cancel-icon {
    color: white;
    opacity: 0.8;
}

.renopilot-tour-step .shepherd-cancel-icon:hover {
    opacity: 1;
}

.renopilot-tour-step .shepherd-text {
    padding: 20px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

.renopilot-tour-step .shepherd-footer {
    padding: 12px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.shepherd-button-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.shepherd-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.shepherd-button-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.shepherd-button-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.shepherd-arrow {
    border-color: white !important;
}

/* Highlight effect */
.shepherd-target {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3) !important;
    border-radius: 8px;
}

/* =====================
   TOOLTIP STYLES
   ===================== */

.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.2s;
    vertical-align: middle;
}

.tooltip-trigger:hover {
    background: #4f46e5;
    color: white;
}

.renopilot-tooltip {
    position: absolute;
    z-index: 10001;
    background: #1f2937;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.renopilot-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.renopilot-tooltip .tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1f2937;
}

.renopilot-tooltip.tooltip-above .tooltip-arrow {
    top: auto;
    bottom: -6px;
    border-bottom: none;
    border-top: 6px solid #1f2937;
}

/* =====================
   ACTION HINT STYLES
   ===================== */

.renopilot-action-hint {
    position: absolute;
    z-index: 10001;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.renopilot-action-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

.renopilot-action-hint::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1f2937;
}

/* =====================
   SIDEBAR PROGRESS WIDGET
   ===================== */

#training-progress {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 12px;
    margin: 12px;
}

#training-progress .progress-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#training-progress .progress-icon {
    font-size: 18px;
}

#training-progress .progress-title {
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
}

#training-progress .progress-text {
    font-size: 13px;
    color: #0284c7;
    margin-left: auto;
}

#training-progress .progress-track {
    background: #bae6fd;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

#training-progress .progress-bar {
    background: linear-gradient(90deg, #0284c7, #0ea5e9);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

#training-progress .progress-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
}

#training-progress .progress-link:hover {
    text-decoration: underline;
}

/* =====================
   HOVER TOOLTIP STYLES
   ===================== */

.renopilot-hover-tooltip {
    position: fixed;
    z-index: 10001;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.renopilot-hover-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.renopilot-hover-tooltip.tooltip-above {
    transform: translateY(-8px);
}

.renopilot-hover-tooltip.tooltip-above.visible {
    transform: translateY(0);
}

.renopilot-hover-tooltip .tooltip-text {
    color: #f3f4f6;
}

/* Elements with hover tooltips get a subtle indicator */
[data-has-tooltip="true"] {
    position: relative;
}

[data-has-tooltip="true"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

[data-has-tooltip="true"]:hover::after {
    opacity: 1;
}

/* Info icon for planning cards */
.tooltip-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    cursor: help;
    margin-left: 8px;
    transition: all 0.2s;
}

.tooltip-info-icon:hover {
    background: #4f46e5;
    color: white;
    transform: scale(1.1);
}
