/* 
 * PicoSMS Tour Guide - Custom Styling
 * Professional theme matching PicoSMS design
 */

/* Base Shepherd Styling Overrides */
.shepherd-element {
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.shepherd-has-title .shepherd-content .shepherd-header {
    background: #7367F0;
    padding: 1rem 1.25rem;
    border-radius: 8px 8px 0 0;
}

.shepherd-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.shepherd-text {
    padding: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
}

.shepherd-content {
    border-radius: 8px;
    background: #ffffff;
}

/* Button Styling */
.shepherd-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shepherd-button {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.shepherd-button-primary {
    background: #7367F0;
    color: #ffffff;
}

.shepherd-button-primary:hover {
    background: #5f54d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(115, 103, 240, 0.3);
}

.shepherd-button-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.shepherd-button-secondary:hover {
    background: #cbd5e0;
}

.shepherd-button.shepherd-button-skip {
    background: transparent;
    color: #e53e3e;
    padding: 0.5rem 1rem;
}

.shepherd-button.shepherd-button-skip:hover {
    background: #fff5f5;
    color: #c53030;
}

/* Arrow Styling */
.shepherd-arrow:before {
    background: #ffffff;
}

/* Add spacing between arrow and target element */
.shepherd-element[data-popper-placement^='top'] {
    margin-bottom: 25px;
}

.shepherd-element[data-popper-placement^='bottom'] {
    margin-top: 25px;
}

.shepherd-element[data-popper-placement^='left'] {
    margin-right: 25px;
}

.shepherd-element[data-popper-placement^='right'] {
    margin-left: 25px;
}

/* Progress Indicator */
.shepherd-progress {
    background: #e2e8f0;
    height: 4px;
    border-radius: 2px;
    margin: 0 1.25rem 1rem;
    overflow: hidden;
}

.shepherd-progress-bar {
    background: #7367F0;
    height: 100%;
    transition: width 0.3s ease;
}

/* Element Highlighting */
.shepherd-target-click-disabled.shepherd-enabled.shepherd-target,
.shepherd-target-click-disabled.shepherd-enabled.shepherd-target * {
    pointer-events: none;
}

.shepherd-modal-overlay-container {
    opacity: 0.5;
}

/* Welcome/Completion Modal Styling */
.shepherd-modal-is-visible .shepherd-element {
    max-width: 500px;
}

.shepherd-welcome-modal .shepherd-text,
.shepherd-completion-modal .shepherd-text {
    text-align: center;
    padding: 2rem 1.5rem;
}

.shepherd-welcome-modal h3,
.shepherd-completion-modal h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Step Counter */
.shepherd-step-counter {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shepherd-element {
        max-width: 90vw;
        margin: 0 5vw;
    }

    .shepherd-text {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .shepherd-header h3 {
        font-size: 1rem;
    }

    .shepherd-button {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* Animation */
@keyframes shepherd-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shepherd-element {
    animation: shepherd-fade-in 0.3s ease;
}

/* Accessibility */
/* .shepherd-element:focus {
    outline: 2px solid #7367F0;
    outline-offset: 2px;
} */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .shepherd-element {
        border: 2px solid #000000;
    }

    .shepherd-button-primary {
        border: 2px solid #000000;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .shepherd-content {
        background: #2d3748;
    }

    .shepherd-text {
        color: #e2e8f0;
    }

    .shepherd-button-secondary {
        background: #4a5568;
        color: #e2e8f0;
    }
}

.shepherd-has-title .shepherd-content .shepherd-cancel-icon{
    color: #bfdaed;
}

.shepherd-has-title .shepherd-content .shepherd-cancel-icon:hover {
    color: #edbfbf;
}