/* static/css/intro_overrides.css */

/* --- Tooltip Container --- */
.introjs-tooltip {
    background-color: rgba(0, 51, 102, 0.85) !important; 
    backdrop-filter: blur(4px); /* Adds a nice frosted glass effect */
    color: #ffffff !important; 
    border: 1px solid rgba(187, 224, 239, 0.4) !important; 
    border-radius: 8px !important; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    min-width: 280px;
}

/* --- Arrow/Callout pointing to the element --- */
.introjs-arrow {
    border-top-color: rgba(0, 51, 102, 0.85) !important;
    border-bottom-color: rgba(0, 51, 102, 0.85) !important;
    border-left-color: rgba(0, 51, 102, 0.85) !important;
    border-right-color: rgba(0, 51, 102, 0.85) !important;
}

/* --- Text Content --- */
.introjs-tooltiptext {
    font-size: 1.05rem !important; 
    padding: 25px 20px !important;
    line-height: 1.5;
    font-family: inherit; /* Matches your app's font */
}

/* --- Progress Dots --- */
.introjs-bullets {
    padding-bottom: 15px !important;
}

.introjs-bullets ul li a {
    background-color: rgba(255, 255, 255, 0.3) !important; 
    transition: all 0.2s ease;
}

.introjs-bullets ul li a.active {
    background-color: #ffffff !important; 
    width: 15px; /* Makes the active dot slightly wider/pill-shaped */
    border-radius: 5px;
}

/* --- Button Container --- */
.introjs-tooltipbuttons {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 12px !important;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 8px; /* Spaces buttons evenly */
}

/* --- Global Button Styles --- */
.introjs-button {
    background-image: none !important; 
    text-shadow: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    transition: all 0.2s ease-in-out !important;
    border-radius: 5px !important;
    outline: none !important;
}

/* Specific "Back" Button (Prev) */
.introjs-prevbutton {
    background-color: #ffffff !important;
    color: #003366 !important;
    border: 1px solid #ffffff !important;
}

/* Specific "Next" & "Done" Button */
.introjs-nextbutton, .introjs-donebutton {
    background-color: #003366 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Hover States */
.introjs-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- Close (X) Button --- */
.introjs-skipbutton {
    /* Hide the actual "Skip" text */
    font-size: 0 !important; 
    display: block !important;
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

/* Insert the 'X' icon using a pseudo-element */
.introjs-skipbutton::before {
    content: "×" !important; /* This is the multiplication symbol */
    font-size: 24px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 20px !important;
    display: block !important;
    text-align: center !important;
    visibility: visible !important;
}

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


/* Ensure the title is white */
.introjs-tooltip-title {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    padding-top: 10px;
    margin-bottom: 5px;
}

/* This is the actual highlight box around the element */
.introjs-helperLayer {
    background-color: rgba(255, 255, 255, 0.05) !important; 
    border: 2px solid #BBE0EF !important; 
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5) !important;
    border-radius: 4px !important;
}

/* This hides the "number" badge that intro.js sometimes puts on the corner */
.introjs-helperNumberLayer {
    display: none !important;
}
