/**
 * Public CSS for DART Onboarding
 */

/* Modal Base Styles */
.dart-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.dart-modal.show {
    display: flex !important;
}

.dart-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    margin: 0 auto;
}

.dart-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.dart-modal-close:hover,
.dart-modal-close:focus {
    color: #f44336;
    text-decoration: none;
    cursor: pointer;
}

/* Video Modal - Standard Size */
.video-modal .dart-modal-content {
    width: 800px;
    height: 450px; /* 16:9 aspect ratio */
}

.dart-video-container {
    width: 100%;
    height: 100%;
    background-color: #000;
}

/* Instructions Modal - Taller */
.instructions-modal .dart-modal-content {
    width: 800px;
    height: 600px; /* Taller than video modal */
    display: flex;
    flex-direction: column;
}

.dart-instructions-container {
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    background-color: #fff;
}

.dart-instructions-fallback {
    text-align: center;
    padding: 40px 20px;
}

.dart-instructions-fallback h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Website Modal - Largest */
.website-modal .dart-modal-content {
    width: 90%;
    height: 80vh; /* Largest modal */
    max-width: 1200px;
}

.dart-website-container {
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.dart-website-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Button Styles */
.dart-onboarding-video-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.dart-onboarding-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-size: 14px;
    line-height: 1.5;
}

.dart-onboarding-btn i {
    margin-right: 8px;
}

.dart-onboarding-btn-primary {
    background-color: #2196F3;
    color: white;
}

.dart-onboarding-btn-primary:hover {
    background-color: #0d8bf2;
}

.dart-onboarding-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.dart-onboarding-btn-secondary:hover {
    background-color: #e9e9e9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dart-modal-content {
        width: 95% !important;
        max-height: 80vh;
    }
    
    .video-modal .dart-modal-content {
        height: auto;
    }
    
    .instructions-modal .dart-modal-content {
        height: 80vh;
    }
    
    .website-modal .dart-modal-content {
        height: 80vh;
    }
    
    .dart-onboarding-video-btn {
        flex-direction: column;
    }
    
    .dart-onboarding-btn {
        width: 100%;
    }
}

/* Rich Text Content Styling */
.dart-instructions-container h1,
.dart-instructions-container h2,
.dart-instructions-container h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #333;
}

.dart-instructions-container p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.dart-instructions-container ul,
.dart-instructions-container ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.dart-instructions-container li {
    margin-bottom: 0.5em;
}

.dart-instructions-container img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

.dart-instructions-container a {
    color: #2196F3;
    text-decoration: none;
}

.dart-instructions-container a:hover {
    text-decoration: underline;
}

.dart-instructions-container blockquote {
    border-left: 4px solid #2196F3;
    padding-left: 1em;
    margin-left: 0;
    color: #666;
}

.dart-instructions-container code {
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

.dart-instructions-container pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.dart-instructions-container pre code {
    background-color: transparent;
    padding: 0;
}

.dart-instructions-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.dart-instructions-container th,
.dart-instructions-container td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.dart-instructions-container th {
    background-color: #f5f5f5;
}

.dart-instructions-container tr:nth-child(even) {
    background-color: #f9f9f9;
}


/* Notification System Styles */
#dart-notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50; /* Default success color */
    color: white;
    padding: 15px 40px 15px 20px; /* Extra padding on right for close button */
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none; /* Hidden by default */
    max-width: 350px;
}

.dart-notification-message {
    display: inline-block;
    vertical-align: middle;
}

.dart-notification-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.dart-notification-close:hover {
    opacity: 0.8;
}

