/**
 * Oncored Tour Styles
 * Custom styles for the onboarding tour
 */

/* Override intro.js default styles with higher specificity */
.introjs-tooltip {
    min-width: 400px !important;
    max-width: 500px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    background-color: #ffffff !important;
}

.introjs-tooltiptext {
    padding: 0 !important;
    font-family: 'Roboto', sans-serif !important;
    color: #333 !important;
}

.introjs-tooltipbuttons {
    border-top: 1px solid #f0f0f0 !important;
    padding: 15px 20px !important;
}

.introjs-button {
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-shadow: none !important;
    font-size: 14px !important;
}

.introjs-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.introjs-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(87, 199, 212, 0.3) !important;
}

.introjs-nextbutton {
    background: linear-gradient(135deg, #57C7D4 0%, #4a9da8 100%) !important;
    color: white !important;
}

.introjs-nextbutton:hover {
    background: linear-gradient(135deg, #4a9da8 0%, #3d8792 100%) !important;
}

.introjs-prevbutton {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.introjs-prevbutton:hover {
    background: #e0e0e0 !important;
}

.introjs-skipbutton {
    color: #ffffff !important;
    font-weight: normal !important;
    min-width: 100px !important;
    text-align: center !important;
    padding: 10px 15px !important;
    height: auto !important;
}

.introjs-skipbutton:hover {
    color: #000000 !important;
}

.introjs-donebutton {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: white !important;
}

.introjs-donebutton:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%) !important;
}

.introjs-progress {
    background: #e0e0e0 !important;
    height: 4px !important;
    margin: 0 !important;
}

.introjs-progressbar {
    background: linear-gradient(90deg, #57C7D4 0%, #4a9da8 100%) !important;
}

/* Overlay improvements */
.introjs-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
    opacity: 1 !important;
}

.introjs-helperLayer {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 4px solid #57C7D4 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 0 5000px rgba(0, 0, 0, 0.6) !important;
}

/* Tooltip arrow */
.introjs-arrow.top,
.introjs-arrow.top-middle,
.introjs-arrow.top-right {
    border-bottom-color: white !important;
}

.introjs-arrow.right,
.introjs-arrow.right-bottom {
    border-left-color: white !important;
}

.introjs-arrow.bottom,
.introjs-arrow.bottom-middle,
.introjs-arrow.bottom-right {
    border-top-color: white !important;
}

.introjs-arrow.left,
.introjs-arrow.left-bottom {
    border-right-color: white !important;
}

/* Welcome screen */
.tour-welcome {
    padding: 30px;
    text-align: center;
}

.tour-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: wave 1s ease-in-out;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.tour-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.tour-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    text-align: justify;
}

.tour-note {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #57C7D4;
    font-size: 14px;
    color: #555;
    margin-top: 20px;
    text-align: left;
}

.tour-note i {
    color: #57C7D4;
    margin-right: 8px;
}

/* Step screens */
.tour-step {
    padding: 25px;
}

.tour-step-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-step-title i {
    color: #57C7D4;
    font-size: 24px;
}

.tour-step-text {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* Complete screen */
.tour-complete {
    padding: 30px;
    text-align: center;
}

.tour-icon-success {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    font-size: 48px;
    font-weight: bold;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.tour-tips {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tour-tip {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    color: #555;
    border-left: 4px solid #57C7D4;
}

.tour-tip strong {
    color: #333;
}

/* Overlay improvements */
.introjs-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

.introjs-helperLayer {
    border-radius: 8px !important;
    box-shadow: 0 0 0 5000px rgba(0, 0, 0, 0.6) !important;
}

/* Tooltip arrow */
.introjs-arrow {
    border-color: white !important;
}

/* Bullet navigation (if enabled) */
.introjs-bullets ul li a {
    background: #ccc !important;
}

.introjs-bullets ul li a.active {
    background: #57C7D4 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .introjs-tooltip {
        min-width: 280px;
        max-width: 90vw;
    }

    .tour-welcome,
    .tour-step,
    .tour-complete {
        padding: 20px;
    }

    .tour-title {
        font-size: 24px;
    }

    .tour-text,
    .tour-step-text {
        font-size: 14px;
    }

    .tour-icon {
        font-size: 48px;
    }

    .tour-icon-success {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
}

/* Animation for highlighted elements */
.introjs-showElement {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(87, 199, 212, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(87, 199, 212, 0);
    }
}
