/* Custom Shepherd Theme Styles */
.shepherd-theme-custom { 
    margin: 15px 0 !important;
}

.shepherd-theme-custom .shepherd-element {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
}

.shepherd-theme-custom .shepherd-content {
    border-radius: 8px;
    padding: 1rem;
}

.shepherd-theme-custom .shepherd-header {
    background: white !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 10px !important;
    border-bottom: 1px solid #e9ecef;
    line-height: normal !important;
}

.shepherd-theme-custom .shepherd-title {
    color: #212529;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.shepherd-theme-custom .shepherd-text {
    color: #495057;
    font-size: 1.4rem;
    line-height: 1.5;
    padding: 1rem;
}

.shepherd-theme-custom .shepherd-text p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.shepherd-theme-custom .shepherd-text p:last-child {
    margin-bottom: 0;
}

.shepherd-theme-custom .shepherd-footer {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 5px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.shepherd-theme-custom .shepherd-button {
    background: #3288e6;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 1.4rem;
    margin-inline-end: 0.5rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.shepherd-theme-custom .shepherd-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.shepherd-theme-custom .shepherd-footer .shepherd-button:last-child {
    margin-inline-end: 0;
}

.shepherd-theme-custom .shepherd-cancel-icon {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
    transition: color 0.3s ease;
}

.shepherd-theme-custom .shepherd-arrow {
    height: 16px;
    width: 16px;
}

.shepherd-theme-custom .shepherd-arrow:before {
    background: #fff;
    height: 16px;
    width: 16px;
}

.shepherd-theme-custom .shepherd-has-title .shepherd-arrow:before {
    background: #f8f9fa;
}

.shepherd-theme-custom .shepherd-button-hidden {
    display: none;
}

.shepherd-theme-custom .shepherd-button-back {
    background-color: #6c757d;
    color: white;
    order: -1;
    margin-inline-end: 0;
}

.shepherd-theme-custom .shepherd-button-next {
    background-color: #3288e6;
    color: white;
}

/* Push Skip button and subsequent buttons to the end */
.shepherd-theme-custom .shepherd-button-skip {
    background-color: #D91E18;
    color: white;
    margin-inline-start: auto;
}

.shepherd-theme-custom .shepherd-button-finish {
    background-color: #28a745;
    color: white;
}

.shepherd-theme-custom .shepherd-button-next:not(:disabled):hover {
    background-color: #3288e6 !important;
}

.shepherd-theme-custom .shepherd-button-skip:not(:disabled):hover {
    background-color: #D91E18 !important;
}

.shepherd-theme-custom .shepherd-button-finish:not(:disabled):hover {
    background-color: #28a745 !important;
}

.shepherd-theme-custom .shepherd-button-back:not(:disabled):hover {
    background-color: #6c757d !important;
}

.shepherd-modal-overlay-container { 
    z-index: 100060 !important; 
}

.shepherd-element { 
    z-index: 100080 !important;
} 

.shepherd-element * { 
    z-index: 100080 !important; 
}