/* TourGuideJS Custom Styling */
.tg-dialog {
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    padding: 20px !important;
    max-width: 500px !important;
    font-family: 'Copernicus', sans-serif !important;
    z-index: 10000 !important;
}

.tg-dialog-title {
    font-size: 1.8em !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    color: var(--secondary-color) !important;
}

.tg-dialog-body {
    font-size: 1.1em !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-bottom: 25px !important;
}

.tg-dialog-footer {
    display: flex !important;
    flex-direction: row;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 20px !important;
}

.tg-dialog-dots {
    flex-direction: row;
}

.tg-dialog-close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 24px !important;
    color: #999 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.tg-dialog-btn {
    background-color: var(--secondary-color) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.tg-dialog-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.tg-dialog-btn-secondary {
    background-color: #e0e0e0 !important;
    color: #333 !important;
}

.tg-dialog-btn-secondary:hover {
    background-color: #d0d0d0 !important;
}

.tg-backdrop {
    z-index: 9999 !important;
    /* Uncomment below if you want a dimmed backdrop */
    /* background-color: rgba(0, 0, 0, 0.5) !important; */
}

.tg-dialog-progress {
    font-size: 0.9em !important;
    color: #999 !important;
}

.tg-dialog-step-dots {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    margin: 15px 0 !important;
}

.tg-dialog-step-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #ddd !important;
    transition: all 0.3s ease !important;
}

.tg-dialog-step-dot.active {
    background-color: var(--secondary-color) !important;
    transform: scale(1.3) !important;
}

.tg-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 24px !important;
    color: #999 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.tg-close:hover {
    color: #333 !important;
}

/* Lower z-index of overlays when tour is active */
body:has(.tg-dialog) .cram-outline,
body:has(.tg-dialog) .lock-in-overlay {
    z-index: -1 !important;
}
