/************************************************************************************************************
*	DHTML modal dialog box	(CSS for the DHTMLSuite_modalMessage class)
*
*	Created:						August, 26th, 2006
*	@class Purpose of class:		Display a modal dialog box on the screen.
*			
*	Css files used by this script:	modal-message.css
*
* 	Update log:
*
************************************************************************************************************/

/**/
/* Modal Dialog Styles */
.modalDialog_transparentDivs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 89999;
}

.modalDialog_contentDiv {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modalDialog_contentDiv_shadow {
    position: fixed;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 95000;
}

/* Scrollbar styling for the modal */
.modalDialog_contentDiv::-webkit-scrollbar {
    width: 10px;
}

.modalDialog_contentDiv::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.modalDialog_contentDiv::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.modalDialog_contentDiv::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal content styling - more compact */
.modalDialog_contentDiv h1 {
    color: #007cba;
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    padding: 20px 20px 0 20px;
}

.modalDialog_contentDiv h3 {
    color: #004085;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.modalDialog_contentDiv p {
    margin: 8px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.modalDialog_contentDiv > div {
    padding: 20px;
}

/* Info boxes within modal - more compact */
.modalDialog_contentDiv .info-section {
    background: #e7f3ff;
    border-left: 4px solid #007cba;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
}

.modalDialog_contentDiv .warning-section {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
}

.modalDialog_contentDiv .help-section {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
}

/* Close button styling */
.modalDialog_contentDiv .modal-close-btn {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modalDialog_contentDiv .modal-close-btn:hover {
    background: #005a87;
}

.modalDialog_contentDiv .button-container {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .modalDialog_contentDiv {
        max-height: 85vh;
        width: 95% !important;
        left: 2.5% !important;
    }
    
    .modalDialog_contentDiv h1 {
        font-size: 1.3rem;
        padding: 15px 15px 0 15px;
        margin: 0 0 10px 0;
    }
    
    .modalDialog_contentDiv h3 {
        font-size: 1rem;
    }
    
    .modalDialog_contentDiv p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .modalDialog_contentDiv > div {
        padding: 15px;
    }
    
    .modalDialog_contentDiv .info-section,
    .modalDialog_contentDiv .warning-section,
    .modalDialog_contentDiv .help-section {
        padding: 12px;
        margin: 12px 0;
    }
    
    .modalDialog_contentDiv .modal-close-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modalDialog_contentDiv {
        max-height: 80vh;
    }
    
    .modalDialog_contentDiv h1 {
        font-size: 1.2rem;
    }
    
    .modalDialog_contentDiv h3 {
        font-size: 0.95rem;
    }
    
    .modalDialog_contentDiv p {
        font-size: 0.85rem;
    }
}