/* SeeSee Onboarding Styles */

/* Ensure onboarding modals appear above ALL other content including footer, drawing tools, etc. */
#homeScreenModal,
#notificationModal,
#successModal {
    z-index: 2000000 !important;
}

/* Bootstrap modal backdrops need proper z-index too */
.modal-backdrop {
    z-index: 1999999 !important;
}

/* Specific backdrop overrides */
#homeScreenModal + .modal-backdrop,
#notificationModal + .modal-backdrop,
#successModal + .modal-backdrop {
    z-index: 1999999 !important;
}

.onboarding-modal {
    border-radius: 20px;
    border: 2px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2), 0 0 50px rgba(255, 0, 229, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
}

.onboarding-modal .modal-header {
    background: linear-gradient(to right, rgba(0, 229, 255, 0.1), rgba(255, 0, 229, 0.1));
    border-radius: 18px 18px 0 0;
    padding: 20px;
}

.onboarding-modal .modal-title {
    font-weight: bold;
    background: linear-gradient(to right, #00e5ff, #ff00e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.4rem;
}

.onboarding-modal .modal-body {
    padding: 30px;
}

.onboarding-modal .modal-footer {
    background: linear-gradient(to right, rgba(0, 229, 255, 0.05), rgba(255, 0, 229, 0.05));
    border-radius: 0 0 18px 18px;
    padding: 20px 30px;
}

.benefits-list, .notification-benefits {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.notification-benefits p {
    color: #2c3e50 !important;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.benefit-item {
    padding: 8px 0;
    font-size: 1.1rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.benefit-item::before {
    content: "";
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #00e5ff, #ff00e5);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.instructions-section {
    background: rgba(0, 229, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.instructions-section h5 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.platform-instructions {
    text-align: left;
}

.instruction-step {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.instruction-step:last-child {
    border-bottom: none;
}

.step-number {
    background: linear-gradient(45deg, #00e5ff, #ff00e5);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-text {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.4;
}

.setup-note {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    padding: 15px;
    color: #856404;
    font-size: 1rem;
}

.onboarding-btn {
    background: linear-gradient(45deg, #00e5ff, #ff00e5);
    border: none;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.onboarding-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
    color: white;
}

.setup-steps {
    background: rgba(255, 0, 229, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.setup-steps h5 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.why-notifications {
    background: rgba(0, 229, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.why-notifications p {
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.why-notifications .text-muted {
    color: #495057 !important;
    font-weight: 500;
    line-height: 1.5;
}

.why-notifications .small {
    font-size: 0.9rem !important;
    color: #495057 !important;
}

.skip-note {
    max-width: 300px;
    margin: 0 auto;
    font-style: italic;
    color: #6c757d !important;
}

/* Success modal styles */
#successModal .onboarding-modal {
    background: linear-gradient(145deg, #f0fff4 0%, #e6fffa 100%);
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.2);
}

#successModal .modal-body {
    text-align: center;
}

#successModal h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 576px) {
    .onboarding-modal .modal-body {
        padding: 20px;
    }
    
    .onboarding-modal .modal-footer {
        padding: 15px 20px;
    }
    
    .benefit-item {
        font-size: 1rem;
    }
    
    .onboarding-btn {
        min-width: auto;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .instructions-section {
        padding: 15px;
    }
    
    .setup-steps {
        padding: 15px;
    }
}

/* Animation for modal appearance */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out;
}

.modal.show .modal-dialog {
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}