/* Greeting Modal Styles */
.greeting-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.greeting-modal.show {
    opacity: 1;
    visibility: visible;
}

.greeting-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.greeting-modal-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease-in-out;
}

.greeting-modal.show .greeting-modal-container {
    transform: scale(1) translateY(0);
}

.greeting-modal-header {
    position: relative;
    padding: 20px 20px 0;
    display: flex;
    justify-content: flex-end;
}

.greeting-modal-close {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
    transition: all 0.2s;
}

.greeting-modal-close:hover {
    background: #e9ecef;
    color: #495057;
    transform: scale(1.1);
}

.greeting-modal-body {
    padding: 0 40px 40px;
}

.slide-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    width: 100%;
}

.slide-header {
    margin-bottom: 30px;
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    color: #017bca;
    margin: 0;
    line-height: 1.2;
}

.slide-body {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

/* Slide Animations */
.fade-in {
    animation-name: fadeIn;
}

.slide-up {
    animation-name: slideUp;
}

.slide-left {
    animation-name: slideLeft;
}

.zoom-in {
    animation-name: zoomIn;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide Content Styles */
.greeting-slide-content {
    padding: 20px 0;
}

.greeting-icon {
    font-size: 64px;
    color: #017bca;
    margin-bottom: 20px;
    display: block;
}

.greeting-slide-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #495057;
    margin: 0 0 20px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 20px;
    color: #017bca;
    margin-bottom: 4px;
}

.feature-item span {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

/* Instruction Steps */
.instruction-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.step:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.step-number {
    width: 28px;
    height: 28px;
    background: #017bca;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: #495057;
    line-height: 1.3;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.btn-primary {
    background: #017bca;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 123, 202, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* Slide Navigation */
.slide-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.slide-indicators {
    display: flex;
    gap: 8px;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s;
}

.slide-indicator.active {
    background: #017bca;
    transform: scale(1.2);
}

.slide-indicator:hover {
    background: #adb5bd;
}

.slide-controls {
    display: flex;
    gap: 10px;
}

.btn-nav {
    width: 40px;
    height: 40px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-nav:hover:not(:disabled) {
    border-color: #017bca;
    color: #017bca;
    transform: scale(1.1);
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toast Notification */
.greeting-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #017bca;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    max-width: 400px;
}

.greeting-toast.show {
    transform: translateX(0);
}

.greeting-toast i {
    font-size: 18px;
}

.greeting-toast span {
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .greeting-modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .greeting-modal-body {
        padding: 0 20px 20px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .greeting-slide-content p {
        font-size: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .slide-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .greeting-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .greeting-modal-container {
        max-height: 90vh;
    }
    
    .slide-container {
        min-height: 300px;
    }
    
    .greeting-icon {
        font-size: 48px;
    }
    
    .step {
        padding: 12px;
    }
    
    .step-text {
        font-size: 14px;
    }
}

/* ============================
   INTERACTIVE TOUR STYLES
   ============================ */

#tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    pointer-events: none;
}

#tour-overlay.show {
    /* background: rgba(0, 0, 0, 0.7); */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* backdrop-filter: blur(3px); */
}

.tour-spotlight {
    position: fixed;
    border: 3px solid #017bca;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    z-index: 9991;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.tour-spotlight:hover {
    border-color: #0056b3;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.8);
}

.tour-tooltip {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9992;
    padding: 20px;
    max-width: 350px;
    animation: tooltipSlideIn 0.4s ease-out;
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.tour-tooltip-header h3 {
    margin: 0;
    color: #017bca;
    font-size: 18px;
    font-weight: 600;
}

.tour-close-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.tour-close-btn:hover {
    color: #dc3545;
}

.tour-description {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
}

.tour-progress {
    margin-bottom: 16px;
}

.tour-step-count {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.tour-progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.tour-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #017bca, #0056b3);
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.tour-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.tour-btn-prev,
.tour-btn-next {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tour-btn-prev:hover:not(:disabled),
.tour-btn-next:hover:not(:disabled) {
    background: #017bca;
    color: white;
    border-color: #017bca;
}

.tour-btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tour-btn-next {
    background: #017bca;
    color: white;
    border-color: #017bca;
}

.tour-btn-next:hover {
    background: #0056b3;
    border-color: #0056b3;
}

@keyframes tooltipSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive tour styles */
@media (max-width: 768px) {
    .tour-tooltip {
        max-width: 90vw;
        padding: 16px;
    }
    
    .tour-tooltip-header h3 {
        font-size: 16px;
    }
    
    .tour-description {
        font-size: 13px;
    }
    
    .tour-actions {
        flex-direction: column;
    }
    
    .tour-btn-prev,
    .tour-btn-next {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tour-tooltip {
        max-width: 95vw;
        padding: 12px;
    }
    
    .tour-tooltip-header {
        gap: 8px;
    }
    
    .tour-tooltip-header h3 {
        font-size: 14px;
    }
    
    .tour-description {
        font-size: 12px;
    }
    
    .tour-step-count {
        font-size: 11px;
    }
}