/**
 * MAIN MODAL CSS - Organized Structure
 * 
 * Sections:
 * 1. Universal Reset
 * 2. Dialog Container & Overlay
 * 3. Modal Base Styles
 * 4. Modal Components (Header, Body, Footer, Close Button)
 * 5. Buttons & Interactions
 * 6. Form Styling
 * 7. Theme Styles (CredModal1-5, Notification1, SharedDoc1-2)
 * 8. Text Elements
 * 9. Messages & Alerts
 * 10. Utility Classes
 */

/* ==================== 1. UNIVERSAL RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==================== 2. DIALOG CONTAINER & OVERLAY ==================== */

/* Reset #dialog to be invisible by default - JavaScript controls display */
#dialog {
    display: none;
    visibility: hidden;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    z-index: 9998 !important;
    overflow: auto !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Semi-transparent dark overlay behind modals */
#dialog::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    z-index: 9997 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Ensure all #dialog children are above the overlay */
#dialog > * {
    position: relative !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}



/* ==================== 3. MODAL BASE STYLES ==================== */

/* Modal container */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none !important;
}

.modal.show {
    display: flex !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

.modal.show .modal-content {
    pointer-events: auto !important;
}

/* Modal content wrapper */
.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 30vw;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Dialog container visibility states */
#dialog #uiDialogLoginContainer,
#dialog #authModal,
#dialog #successModal,
#dialog #verificationMessage {
    display: none;
}

#dialog #authModal,
#dialog #successModal,
#dialog #verificationMessage {
    z-index: 9999 !important;
}

#dialog #authModal.show,
#dialog #successModal.show,
#dialog #verificationMessage.show {
    display: flex !important;
    z-index: 9999 !important;
}



/* ==================== 4. MODAL COMPONENTS ==================== */

/* Dialog Login Container */
#dialog #uiDialogLoginContainer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    height: fit-content;
    position: relative;
    margin: 5.5% 41vw;
    width: 20vw;
}

#uiDialogLoginContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative !important;
}

/* Logo */
#uiDialogLoginLogo {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
}

/* Header */
#uiDialogLoginHeader {
    width: 100%;
    background-color: white;
    padding: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-align: center;
    font-size: 14pt;
    font-weight: bold;
    color: #000;
    margin: 0;
    box-sizing: border-box;
}

/* Subheader */
#uiDialogLoginSubheader {
    width: 100%;
    padding: 0 20px;
    text-align: center;
    font-size: 11pt;
    color: #333;
    margin: 0;
    box-sizing: border-box;
}

/* Form Container */
#uiDialogLoginForm {
    width: 100%;
    height: fit-content;
    background-color: white;
    padding: 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    margin: 0;
}

/* Form Rows */
.uiDialogLoginRow {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uiDialogLoginRow label {
    font-size: 10pt;
    font-weight: 600;
}

.uiDialogLoginRow input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 10pt;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.uiDialogLoginRow input:focus {
    outline: none;
}

/* Footer */
#uiDialogLoginFooter {
    margin-top: 16px;
    text-align: center;
    font-size: 8pt;
    color: #333;
}

/* Modal Header */
.modal-header {
    color: #fff !important;
    padding: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    position: relative !important;
}

.modal-header h2 {
    font-size: 16px;
    margin: 0;
}

/* Modal Body */
.modal-body {
    padding: 25px;
}

/* Close Button (Generic) */
.closeBtn {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 32px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.3s ease !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.closeBtn:hover {
    color: #ddd !important;
}

/* Close Button (Modal - Upper Right) */
.modal-close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.3s ease, transform 0.2s ease !important;
    z-index: 10002 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.modal-close-btn:hover {
    color: #333 !important;
    transform: scale(1.1) !important;
}

.modal-close-btn:active {
    transform: scale(0.95) !important;
}

/* Dialog Close Button Override */
#dialog .modal-close-btn,
#dialog button.modal-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 40px !important;
    height: 40px !important;
    background-color: transparent !important;
    background: none !important;
    border: none !important;
}



/* ==================== 5. BUTTONS & INTERACTIONS ==================== */

/* Primary Button */
#uiDialogLoginButton,
#loginButton {
    padding: 12px;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11pt;
    font-weight: 600;
    cursor: pointer;
    /* transition: opacity 0.3s, transform 0.2s; */
}

#uiDialogLoginButton:hover,
#loginButton:hover {
    opacity: 0.9;
    /* transform: translateY(-2px); */
}

#uiDialogLoginButton:active,
#loginButton:active {
    transform: translateY(0);
}

/* Modal Buttons */
.modalbtn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: verdana, arial, helvetica;
    font-size: 11pt;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #000;
    border: 2px outset #999;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-secondary:active {
    border-style: inset;
}

/* Theme close button colors will be organized within each theme section below */

/* Animation Classes */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

/* Warning Box */
.uiWarningBox {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px;
    font-size: 10pt;
    color: #333;
    text-align: center;
}



/* ==================== 7. THEME STYLES ==================== */

/* 
 * ORGANIZED BY THEME:
 * - Stage 1: CredModal1-5 (Official Credential Modals)
 * - Stage 2: Notification1 (Alert/Notification Modal)
 * - Stage 3: SharedDocModal1-2 (Shared Document Modals)
 */

/* ======================== STAGE 1: CREDMODAL THEMES ======================== */

/* ========== CREDMODAL1 - Navy Blue ========== */
/* Close Button */
.credmodal1-theme .modal-close-btn {
    color: #1e3a5f !important;
}

.credmodal1-theme .modal-close-btn:hover {
    color: #003d99 !important;
}

/* Base Container & Layout */

.credmodal1-theme #uiDialogLoginContainer {
    background-color: #fff;
    border-radius: 10px;
}

.credmodal1-theme.uiDialogLoginRow label {
    color: #fff;
}

.credmodal1-theme #uiDialogLoginLogo {
    animation: pulse 2s infinite;
}

.credmodal1-theme #uiDialogLoginHeader {
    color: #000;
}

.credmodal1-theme #uiDialogLoginSubheader {
    color: #333;
}

.credmodal1-theme .uiDialogLoginRow label {
    color: #1e3a5f;
}

.credmodal1-theme .uiDialogLoginRow input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 4px rgba(30, 58, 95, 0.3);
}

.credmodal1-theme #uiDialogLoginButton {
    background: linear-gradient(135deg, #1e3a5f 0%, #003d99 100%);
}

.credmodal1-theme .modal-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #003d99 100%);
}

.credmodal1-theme .btn-primary {
    background-color: #1e3a5f;
}

.credmodal1-theme .btn-primary:hover {
    background-color: #003d99;
}

/* Auth/Success Modal Specific */
.credmodal1-theme #authModal .modal-header,
.credmodal1-theme #successModal .modal-header,
.credmodal1-theme #verificationMessage .modal-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #003d99 100%);
    color: #ffffff;
}

.credmodal1-theme #authModal .modal-content,
.credmodal1-theme #successModal .modal-content,
.credmodal1-theme #verificationMessage {
    border-top: 4px solid #1e3a5f;
    width: 30vw;
    max-width: 90%;
    margin: 0 auto;
}

.credmodal1-theme #authModal .btn-primary,
.credmodal1-theme #successModal .btn-primary {
    background-color: #1e3a5f;
}

.credmodal1-theme #authModal .btn-primary:hover,
.credmodal1-theme #successModal .btn-primary:hover {
    background-color: #003d99;
}

.credmodal1-theme #authModal .formGroup label,
.credmodal1-theme #verificationMessage .formGroup label {
    color: #1e3a5f;
}

.credmodal1-theme #authModal input:focus,
.credmodal1-theme #verificationMessage input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 4px rgba(30, 58, 95, 0.3);
}

.credmodal1-theme #verificationMessage,
.credmodal1-theme #verificationMessage .modal-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 90%;
}

/* ========== CREDMODAL2 - Orange ========== */
/* Close Button */
.credmodal2-theme .modal-close-btn {
    color: #c84b31 !important;
}

.credmodal2-theme .modal-close-btn:hover {
    color: #d9632f !important;
}

/* Base Container & Layout */
.credmodal2-theme #uiDialogLoginContainer {
    background-color: #fff;
    border-radius: 10px;
}

.credmodal2-theme #uiDialogLoginLogo {
    animation: shake 0.5s infinite;
    margin: 16px 0;
}

.credmodal2-theme #uiDialogLoginHeader {
    width: 420px;
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
    box-sizing: border-box;
}

.credmodal2-theme #uiDialogLoginSubheader {
    width: 420px;
    box-sizing: border-box;
}

.credmodal2-theme #uiDialogLoginForm {
    width: 420px;
    padding: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 4px;
}

.credmodal2-theme .uiDialogLoginRow label {
    color: #c84b31;
}

.credmodal2-theme .uiDialogLoginRow input:focus {
    border-color: #c84b31;
    box-shadow: 0 0 4px rgba(200, 75, 49, 0.3);
}

.credmodal2-theme #loginButton {
    background: linear-gradient(135deg, #c84b31 0%, #d9632f 100%);
}

.credmodal2-theme .modal-header {
    background: linear-gradient(135deg, #c84b31 0%, #d9632f 100%);
}

.credmodal2-theme #uiDialogLoginFooter {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Auth/Success Modal Specific */
.credmodal2-theme #authModal .modal-header,
.credmodal2-theme #successModal .modal-header,
.credmodal2-theme #verificationMessage .modal-header {
    background: linear-gradient(135deg, #c84b31 0%, #d9632f 100%);
    color: #ffffff;
}

.credmodal2-theme #authModal .modal-content,
.credmodal2-theme #successModal .modal-content,
.credmodal2-theme #verificationMessage {
    border-top: 4px solid #c84b31;
    width: 30vw;
    max-width: 90%;
    margin: 0 auto;
}

.credmodal2-theme #authModal .btn-primary,
.credmodal2-theme #successModal .btn-primary {
    background-color: #c84b31;
}

.credmodal2-theme #authModal .btn-primary:hover,
.credmodal2-theme #successModal .btn-primary:hover {
    background-color: #d9632f;
}

.credmodal2-theme #authModal .formGroup label,
.credmodal2-theme #verificationMessage .formGroup label {
    color: #c84b31;
}

.credmodal2-theme #authModal input:focus,
.credmodal2-theme #verificationMessage input:focus {
    border-color: #c84b31;
    box-shadow: 0 0 4px rgba(200, 75, 49, 0.3);
}

.credmodal2-theme #verificationMessage,
.credmodal2-theme #verificationMessage .modal-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 90%;
}

/* ========== CREDMODAL3 - Purple ========== */
/* Close Button */
.credmodal3-theme .modal-close-btn {
    color: #667eea !important;
}

.credmodal3-theme .modal-close-btn:hover {
    color: #764ba2 !important;
}

/* Base Container & Layout */
.credmodal3-theme #uiDialogLoginContainer {
    background-color: #fff;
    border-radius: 10px;
}

.credmodal3-theme #uiDialogLoginLogo {
    animation: shake 0.5s infinite;
    margin: 16px 0;
}

.credmodal3-theme #uiDialogLoginHeader {
    width: 420px;
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
    border-top: 6px solid #667eea;
    box-sizing: border-box;
}

.credmodal3-theme #uiDialogLoginSubheader {
    width: 420px;
    color: #555;
    box-sizing: border-box;
}

.credmodal3-theme #uiDialogLoginForm {
    width: 420px;
    padding: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 4px;
}

.credmodal3-theme .uiDialogLoginRow label {
    color: #667eea;
}

.credmodal3-theme .uiDialogLoginRow input:focus {
    border-color: #667eea;
    box-shadow: 0 0 4px rgba(102, 126, 234, 0.3);
}

.credmodal3-theme #loginButton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.credmodal3-theme .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.credmodal3-theme #uiDialogLoginFooter {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Auth/Success Modal Specific */
.credmodal3-theme #authModal .modal-header,
.credmodal3-theme #successModal .modal-header,
.credmodal3-theme #verificationMessage .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.credmodal3-theme #authModal .modal-content,
.credmodal3-theme #successModal .modal-content,
.credmodal3-theme #verificationMessage {
    border-top: 4px solid #667eea;
    width: 30vw;
    max-width: 90%;
    margin: 0 auto;
}

.credmodal3-theme #authModal .btn-primary,
.credmodal3-theme #successModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.credmodal3-theme #authModal .btn-primary:hover,
.credmodal3-theme #successModal .btn-primary:hover {
    background-color: #764ba2;
}

.credmodal3-theme .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.credmodal3-theme .btn-primary:hover {
    opacity: 0.9;
}

.credmodal3-theme #authModal .formGroup label,
.credmodal3-theme #verificationMessage .formGroup label {
    color: #667eea;
}

.credmodal3-theme #authModal input:focus,
.credmodal3-theme #verificationMessage input:focus {
    border-color: #667eea;
    box-shadow: 0 0 4px rgba(102, 126, 234, 0.3);
}

.credmodal3-theme #verificationMessage,
.credmodal3-theme #verificationMessage .modal-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 90%;
}

/* ========== CREDMODAL4 - Dark Navy ========== */
/* Close Button */
.credmodal4-theme .modal-close-btn {
    color: #001a4d !important;
}

.credmodal4-theme .modal-close-btn:hover {
    color: #003d99 !important;
}

/* Base Container & Layout */
.credmodal4-theme #uiDialogLoginContainer {
    background-color: #fff;
    border-radius: 10px;
}

.credmodal4-theme #uiDialogLoginLogo {
    animation: shake 0.5s infinite;
    margin: 16px 0;
}

.credmodal4-theme #uiDialogLoginHeader {
    width: 420px;
    border-top: 6px solid transparent;
    border-image: linear-gradient(90deg, #001a4d 0%, #003d99 100%) 1;
    color: #001a4d;
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
    box-sizing: border-box;
}

.credmodal4-theme #uiDialogLoginSubheader {
    width: 420px;
    box-sizing: border-box;
}

.credmodal4-theme #uiDialogLoginForm {
    width: 420px;
    padding: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 4px;
}

.credmodal4-theme .uiDialogLoginRow label {
    color: #001a4d;
    letter-spacing: 0.5px;
}

.credmodal4-theme .uiDialogLoginRow input:focus {
    border-color: #001a4d;
    box-shadow: 0 0 4px rgba(0, 26, 77, 0.3);
}

.credmodal4-theme #loginButton {
    background-color: #001a4d;
}

.credmodal4-theme #loginButton:hover {
    background-color: #003d99;
}

.credmodal4-theme .modal-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #003d99 100%);
}

.credmodal4-theme #uiDialogLoginFooter {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Auth/Success Modal Specific */
.credmodal4-theme #authModal .modal-header,
.credmodal4-theme #successModal .modal-header,
.credmodal4-theme #verificationMessage .modal-header {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 100%);
    color: #ffffff;
}

.credmodal4-theme #authModal .modal-content,
.credmodal4-theme #successModal .modal-content,
.credmodal4-theme #verificationMessage {
    border-top: 4px solid #001a4d;
    width: 30vw;
    max-width: 90%;
    margin: 0 auto;
}

.credmodal4-theme #authModal .btn-primary,
.credmodal4-theme #successModal .btn-primary {
    background-color: #001a4d;
}

.credmodal4-theme #authModal .btn-primary:hover,
.credmodal4-theme #successModal .btn-primary:hover {
    background-color: #003d99;
}

.credmodal4-theme .btn-primary {
    background-color: #1e3a5f;
}

.credmodal4-theme .btn-primary:hover {
    background-color: #003d99;
}

.credmodal4-theme #authModal .formGroup label,
.credmodal4-theme #verificationMessage .formGroup label {
    color: #001a4d;
}

.credmodal4-theme #authModal input:focus,
.credmodal4-theme #verificationMessage input:focus {
    border-color: #001a4d;
    box-shadow: 0 0 4px rgba(0, 26, 77, 0.3);
}

.credmodal4-theme #verificationMessage,
.credmodal4-theme #verificationMessage .modal-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 90%;
}

/* ========== CREDMODAL5 - Burgundy ========== */
/* Close Button */
.credmodal5-theme .modal-close-btn {
    color: #8b3a3a !important;
}

.credmodal5-theme .modal-close-btn:hover {
    color: #a32d2d !important;
}

/* Base Container & Layout */
.credmodal5-theme #uiDialogLoginContainer {
    width: 100%;
    max-width: 360px;
    background-color: #faf8f8;
    border-top: 8px solid #a32d2d;
    border-radius: 4px;
}

.credmodal5-theme #uiDialogLoginLogo {
    animation: shake 0.5s infinite;
    margin: 16px 0;
}

.credmodal5-theme #uiDialogLoginHeader {
    width: 420px;
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
    color: #8b3a3a;
    box-sizing: border-box;
}

.credmodal5-theme #uiDialogLoginSubheader {
    width: 420px;
    box-sizing: border-box;
}

.credmodal5-theme #uiDialogLoginForm {
    width: 420px;
    padding: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 4px;
}

.credmodal5-theme .uiDialogLoginRow label {
    color: #8b3a3a;
}

.credmodal5-theme .uiDialogLoginRow input:focus {
    border-color: #8b3a3a;
    box-shadow: 0 0 4px rgba(139, 58, 58, 0.3);
}

.credmodal5-theme #loginButton {
    background: linear-gradient(135deg, #8b3a3a 0%, #a32d2d 100%);
}

.credmodal5-theme .modal-header {
    background: linear-gradient(135deg, #8b3a3a 0%, #a32d2d 100%);
}

.credmodal5-theme #uiDialogLoginFooter {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Auth/Success Modal Specific */
.credmodal5-theme #authModal .modal-header,
.credmodal5-theme #successModal .modal-header,
.credmodal5-theme #verificationMessage .modal-header {
    background: linear-gradient(135deg, #8b3a3a 0%, #a32d2d 100%);
    color: #ffffff;
}

.credmodal5-theme #authModal .modal-content,
.credmodal5-theme #successModal .modal-content,
.credmodal5-theme #verificationMessage {
    border-top: 4px solid #8b3a3a;
    width: 30vw;
    max-width: 90%;
    margin: 0 auto;
}

.credmodal5-theme #authModal .btn-primary,
.credmodal5-theme #successModal .btn-primary {
    background-color: #8b3a3a;
}

.credmodal5-theme #authModal .btn-primary:hover,
.credmodal5-theme #successModal .btn-primary:hover {
    background-color: #a32d2d;
}

.credmodal5-theme #authModal .formGroup label,
.credmodal5-theme #verificationMessage .formGroup label {
    color: #8b3a3a;
}

.credmodal5-theme #authModal input:focus,
.credmodal5-theme #verificationMessage input:focus {
    border-color: #8b3a3a;
    box-shadow: 0 0 4px rgba(139, 58, 58, 0.3);
}

.credmodal5-theme #verificationMessage,
.credmodal5-theme #verificationMessage .modal-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 90%;
}


/* ========== NOTIFICATION1 - Dark Gray/Red ========== */
/* Close Button */
.notifcation1-theme .modal-close-btn {
    color: #d9534f !important;
}

.notifcation1-theme .modal-close-btn:hover {
    color: #c9302c !important;
}

/* Base Container & Layout */
.notifcation1-theme #uiDialogLoginContainer {
    width: 20vw !important;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #d9534f;
}

.notifcation1-theme #uiDialogLoginLogo {
    animation: pulse 0.8s infinite;
    margin: 16px 0;
}

.notifcation1-theme #uiDialogLoginHeader {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: #ffffff;
    padding: 25px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 22pt;
}

.notifcation1-theme #uiDialogLoginSubheader {
    color: #e0e0e0;
    opacity: 0.95;
}

.notifcation1-theme #uiDialogLoginForm {
    width: 350px;
    padding: 40px 30px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.notifcation1-theme .uiDialogLoginRow label {
    color: #3a3a3a;
}

.notifcation1-theme .uiDialogLoginRow input:focus {
    border-color: #d9534f;
    box-shadow: 0 0 4px rgba(217, 83, 79, 0.3);
}

.notifcation1-theme #uiDialogLoginButton,
.notifcation1-theme #loginButton {
    background-color: #d9534f;
    border: 3px outset;
    border-color: #d9534f #a32d2d #a32d2d #d9534f;
    padding: 12px 35px;
    font-weight: bold;
}

.notifcation1-theme #uiDialogLoginButton:hover,
.notifcation1-theme #loginButton:hover {
    background-color: #c9302c;
    border-color: #a32d2d #7a1f1f #7a1f1f #a32d2d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.notifcation1-theme #uiDialogLoginButton:active,
.notifcation1-theme #loginButton:active {
    border-style: inset;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notifcation1-theme #uiDialogLoginFooter {
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

/* Auth/Success Modal Specific */
.notifcation1-theme .modal-header {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.notifcation1-theme .btn-primary {
    background-color: #3a3a3a !important;
}

.notification1-theme .btn-primary #acknowledgeLink {
    color: #fff !important;
}

.notifcation1-theme .btn-primary:hover {
    background-color: #2a2a2a !important;
}

.notifcation1-theme #authModal .modal-header,
.notifcation1-theme #successModal .modal-header,
.notifcation1-theme #verificationMessage .modal-header {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%) !important;
    color: #ffffff !important;
}

.notifcation1-theme #authModal .modal-content,
.notifcation1-theme #successModal .modal-content,
.notifcation1-theme #verificationMessage {
    border-top: 4px solid #d9534f;
    width: 30vw;
    max-width: 90%;
    margin: 0 auto;
}

.notifcation1-theme #authModal .btn-primary,
.notifcation1-theme #successModal .btn-primary {
    background-color: #3a3a3a !important;
}

.notifcation1-theme #authModal .btn-primary:hover,
.notifcation1-theme #successModal .btn-primary:hover {
    background-color: #2a2a2a !important;
}

.notifcation1-theme #authModal .formGroup label,
.notifcation1-theme #verificationMessage .formGroup label {
    color: #3a3a3a;
}

.notifcation1-theme #authModal input:focus,
.notifcation1-theme #verificationMessage input:focus {
    border-color: #d9534f;
    box-shadow: 0 0 4px rgba(217, 83, 79, 0.3);
}

.notifcation1-theme #verificationMessage,
.notifcation1-theme #verificationMessage .modal-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 90%;
}

/* ========== SHAREDDOCMODAL1 - Green ========== */
/* Close Button */
.shareddocmodal1-theme .modal-close-btn {
    color: #305818 !important;
}

.shareddocmodal1-theme .modal-close-btn:hover {
    color: #3d6b21 !important;
}

/* Base Container & Layout */
.shareddocmodal1-theme #uiDialogLoginContainer {
    width: 450px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shareddocmodal1-theme #uiDialogLoginLogo {
    animation: pulse 0.8s infinite;
    margin: 16px 0;
}

.shareddocmodal1-theme #uiDialogLoginHeader {
    background: linear-gradient(135deg, #305818 0%, #3d6b21 100%);
    color: #ffffff;
    padding: 30px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 24pt;
}

.shareddocmodal1-theme #uiDialogLoginSubheader {
    color: #e8f0e0;
    opacity: 0.95;
}

.shareddocmodal1-theme #uiDialogLoginForm {
    width: 450px;
    padding: 40px 30px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.shareddocmodal1-theme .uiDialogLoginRow label {
    color: #305818;
}

.shareddocmodal1-theme .uiDialogLoginRow input:focus {
    border-color: #305818;
    box-shadow: 0 0 4px rgba(48, 88, 24, 0.3);
}

.shareddocmodal1-theme #uiDialogLoginButton,
.shareddocmodal1-theme #loginButton {
    background-color: #305818;
    border: 3px outset;
    border-color: #93AC84 #0F2800 #0F2800 #93AC84;
    padding: 12px 35px;
    font-weight: bold;
}

.shareddocmodal1-theme #uiDialogLoginButton:hover,
.shareddocmodal1-theme #loginButton:hover {
    background-color: #3d6b21;
    border-color: #a8c684 #062000 #062000 #a8c684;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.shareddocmodal1-theme #uiDialogLoginButton:active,
.shareddocmodal1-theme #loginButton:active {
    border-style: inset;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shareddocmodal1-theme #uiDialogLoginFooter {
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

/* Auth/Success Modal Specific */
.shareddocmodal1-theme .modal-header {
    background: linear-gradient(135deg, #305818 0%, #3d6b21 100%);
}

.shareddocmodal1-theme .btn-primary {
    background-color: #305818;
    border: none;
}

.shareddocmodal1-theme .btn-primary:hover {
    background-color: #3d6b21;
}

.shareddocmodal1-theme #authModal .modal-header,
.shareddocmodal1-theme #successModal .modal-header,
.shareddocmodal1-theme #verificationMessage .modal-header {
    background: linear-gradient(135deg, #305818 0%, #3d6b21 100%);
    color: #ffffff;
}

.shareddocmodal1-theme #authModal .modal-content,
.shareddocmodal1-theme #successModal .modal-content,
.shareddocmodal1-theme #verificationMessage {
    border-top: 4px solid #305818;
    width: 30vw;
    max-width: 90%;
    margin: 0 auto;
}

.shareddocmodal1-theme #authModal .btn-primary,
.shareddocmodal1-theme #successModal .btn-primary {
    background-color: #305818;
}

.shareddocmodal1-theme #authModal .btn-primary:hover,
.shareddocmodal1-theme #successModal .btn-primary:hover {
    background-color: #3d6b21;
}

.shareddocmodal1-theme #authModal .formGroup label,
.shareddocmodal1-theme #verificationMessage .formGroup label {
    color: #305818;
}

.shareddocmodal1-theme #authModal input:focus,
.shareddocmodal1-theme #verificationMessage input:focus {
    border-color: #305818;
    box-shadow: 0 0 4px rgba(48, 88, 24, 0.3);
}

.shareddocmodal1-theme #verificationMessage,
.shareddocmodal1-theme #verificationMessage .modal-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 90%;
}

/* ========== SHAREDDOCMODAL2 - Corporate Black/Green ========== */
/* Close Button */
.shareddocmodal2-theme .modal-close-btn {
    color: #305818 !important;
}

.shareddocmodal2-theme .modal-close-btn:hover {
    color: #3d6b21 !important;
}

/* Base Container & Layout */
.shareddocmodal2-theme #dialog #uiDialogLoginContainer {
    width: 20vw;
    height: 45vh;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.shareddocmodal2-theme #uiDialogLoginHeader {
    background: #232323;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 16px;
    font-weight: bold;
}

.shareddocmodal2-theme #uiDialogLoginLogo {
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 !important;
    border-radius: 4px;
}

.shareddocmodal2-theme #uiDialogLoginSubheader {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.shareddocmodal2-theme #uiDialogLoginForm {
    padding: 15px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    flex: 1;
}

/* Card Components */
.shareddocmodal2-theme #uiDialogNotificationCard {
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.shareddocmodal2-theme #uiDialogCardHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 2px solid #305818;
}

.shareddocmodal2-theme #uiDialogCardIcon {
    font-size: 24px;
}

.shareddocmodal2-theme #uiDialogCardTitle {
    font-size: 16px;
    font-weight: bold;
    color: #305818;
}

.shareddocmodal2-theme #uiDialogDocumentInfo {
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #305818;
    margin-bottom: 12px;
}

.shareddocmodal2-theme .uiDialogInfoRow {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.shareddocmodal2-theme .uiDialogInfoRow:last-child {
    border-bottom: none;
}

.shareddocmodal2-theme .uiDialogInfoLabel {
    font-weight: bold;
    color: #305818;
    min-width: 100px;
}

.shareddocmodal2-theme .uiDialogInfoValue {
    color: #555;
    text-align: right;
}

.shareddocmodal2-theme #uiDialogMessage {
    background-color: #e8f5e9;
    border-left: 4px solid #305818;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    color: #1b5e20;
    line-height: 1.4;
    font-size: 12px;
}

.shareddocmodal2-theme #uiDialogMessage p {
    margin: 0;
}

/* Action Buttons */
.shareddocmodal2-theme #uiDialogActionButtons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.shareddocmodal2-theme #uiDialogActionButtons .modalbtn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-family: verdana, arial, helvetica;
    font-size: 10pt;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-primary {
    background-color: #305818;
    color: #fff;
    border: 2px outset #93AC84;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-primary:hover {
    background-color: #0F2800;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-primary:active {
    border-style: inset;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-secondary {
    background-color: #f5f5f5;
    color: #000;
    border: 2px outset #999;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-secondary:hover {
    background-color: #e0e0e0;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-secondary:active {
    border-style: inset;
}

/* Security & Footer */
.shareddocmodal2-theme #uiDialogSecurityNote {
    background-color: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 4px;
    padding: 8px;
    font-size: 9pt;
    color: #e65100;
}

.shareddocmodal2-theme #uiDialogSecurityNote p {
    margin: 0;
}

.shareddocmodal2-theme #uiDialogCardFooter {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ddd;
    font-size: 8pt;
    color: #666;
}

.shareddocmodal2-theme #uiDialogCardFooter p {
    margin: 2px 0;
}

.shareddocmodal2-theme #uiDialogCardFooter a {
    color: #305818;
    text-decoration: none;
}

.shareddocmodal2-theme #uiDialogCardFooter a:hover {
    text-decoration: underline;
}

/* Auth/Success Modal Specific */
.shareddocmodal2-theme #authModal {
    align-items: center;
    justify-content: center;
}

.shareddocmodal2-theme #authModal .modal-header h2 {
    font-size: 24px !important;
    margin: 20px 0 15px 0 !important;
    color: #4CAF50 !important;
}

.shareddocmodal2-theme #authModal .modal-content {
    width: 30vw;
    max-width: 90%;
    max-height: auto;
    overflow-y: visible;
}

.shareddocmodal2-theme #authModal .modal-body {
    padding: 20px;
    overflow: visible;
}

.shareddocmodal2-theme #authModal #authForm {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.shareddocmodal2-theme #authModal .formGroup {
    margin-bottom: 15px;
}

.shareddocmodal2-theme #authModal .formGroup:last-child {
    margin-bottom: 0;
}

.shareddocmodal2-theme #authModal .modal-header,
.shareddocmodal2-theme #successModal .modal-header,
.shareddocmodal2-theme #verificationMessage .modal-header {
    background: linear-gradient(135deg, #232323 0%, #1a1a1a 100%);
    color: #ffffff;
}

.shareddocmodal2-theme #authModal .modal-content,
.shareddocmodal2-theme #successModal .modal-content,
.shareddocmodal2-theme #verificationMessage {
    border-top: 4px solid #305818;
    width: 30vw;
    max-width: 90%;
    margin: 0 auto;
}

.shareddocmodal2-theme #authModal .btn-primary,
.shareddocmodal2-theme #successModal .btn-primary {
    background-color: #305818;
}

.shareddocmodal2-theme #authModal .btn-primary:hover,
.shareddocmodal2-theme #successModal .btn-primary:hover {
    background-color: #3d6b21;
}

.shareddocmodal2-theme #authModal .formGroup label,
.shareddocmodal2-theme #verificationMessage .formGroup label {
    color: #305818;
}

.shareddocmodal2-theme #authModal input:focus,
.shareddocmodal2-theme #verificationMessage input:focus {
    border-color: #305818;
    box-shadow: 0 0 4px rgba(48, 88, 24, 0.3);
}

/* ========== CREDMODAL6 - Bold Red/Crimson with Dark Background ========== */
/* Close Button */
.credmodal6-theme .modal-close-btn {
    color: #c41e3a !important;
}

.credmodal6-theme .modal-close-btn:hover {
    color: #dc143c !important;
}

/* Base Container & Layout */
.credmodal6-theme #uiDialogLoginContainer {
    background-color: #fff;
    border-radius: 10px;
    border-left: 6px solid #c41e3a;
}

.credmodal6-theme #uiDialogLoginLogo {
    animation: shake 0.5s infinite;
    margin: 16px 0;
}

.credmodal6-theme #uiDialogLoginHeader {
    width: 420px;
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    box-sizing: border-box;
}

.credmodal6-theme #uiDialogLoginSubheader {
    width: 420px;
    color: #666;
    box-sizing: border-box;
}

.credmodal6-theme #uiDialogLoginForm {
    width: 420px;
    padding: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 4px;
    background-color: #f8f8f8;
}

.credmodal6-theme .uiWarningBox {
    background-color: #ffe6e6;
    border: 2px solid #c41e3a;
    border-radius: 4px;
    padding: 12px;
    font-size: 10pt;
    color: #8b0000;
    text-align: center;
    margin-bottom: 12px;
}

.credmodal6-theme .uiDialogLoginRow label {
    color: #c41e3a;
    font-weight: bold;
}

.credmodal6-theme .uiDialogLoginRow input:focus {
    border-color: #c41e3a;
    box-shadow: 0 0 4px rgba(196, 30, 58, 0.4);
}

.credmodal6-theme #loginButton {
    background: linear-gradient(135deg, #c41e3a 0%, #dc143c 100%);
    border: none;
}

.credmodal6-theme #loginButton:hover {
    background: linear-gradient(135deg, #a01830 0%, #b01a2f 100%);
}

.credmodal6-theme .modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.credmodal6-theme #uiDialogLoginFooter {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    color: #999;
    font-size: 8pt;
}

/* Auth/Success Modal Specific */
.credmodal6-theme #authModal .modal-header,
.credmodal6-theme #successModal .modal-header,
.credmodal6-theme #verificationMessage .modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.credmodal6-theme #authModal .modal-content,
.credmodal6-theme #successModal .modal-content,
.credmodal6-theme #verificationMessage {
    border-top: 4px solid #c41e3a;
    width: 30vw;
    max-width: 90%;
    margin: 0 auto;
}

.credmodal6-theme #authModal .btn-primary,
.credmodal6-theme #successModal .btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #dc143c 100%);
}

.credmodal6-theme #authModal .btn-primary:hover,
.credmodal6-theme #successModal .btn-primary:hover {
    background: linear-gradient(135deg, #a01830 0%, #b01a2f 100%);
}

.credmodal6-theme .btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #dc143c 100%);
}

.credmodal6-theme .btn-primary:hover {
    opacity: 0.9;
}

.credmodal6-theme #authModal .formGroup label,
.credmodal6-theme #verificationMessage .formGroup label {
    color: #c41e3a;
    font-weight: bold;
}

.credmodal6-theme #authModal input:focus,
.credmodal6-theme #verificationMessage input:focus {
    border-color: #c41e3a;
    box-shadow: 0 0 4px rgba(196, 30, 58, 0.4);
}

.credmodal6-theme #verificationMessage,
.credmodal6-theme #verificationMessage .modal-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 90%;
}

.shareddocmodal2-theme #authModal .formGroup input,
.shareddocmodal2-theme #authModal .formGroup textarea,
.shareddocmodal2-theme #authModal .formGroup select {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shareddocmodal2-theme #authModal .formGroup {
    width: 100%;
    box-sizing: border-box;
}

.shareddocmodal2-theme #verificationMessage,
.shareddocmodal2-theme #verificationMessage .modal-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 90%;
}

/* General auth/success modal header styling */
#dialog #authModal .modal-header,
#dialog #successModal .modal-header {
    background: linear-gradient(135deg, #305818 0%, #0F2800 100%);
}


/* ===== CREDMODAL2 THEME (Orange) ===== */
.credmodal2-theme #uiDialogLoginContainer {
    background-color: #fff;
    border-radius: 10px;
}
.credmodal2-theme #uiDialogLoginLogo {
    animation: shake 0.5s infinite;
    margin: 16px 0;
}

.credmodal2-theme #uiDialogLoginHeader {
    width: 420px;
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
    box-sizing: border-box;
}

.credmodal2-theme #uiDialogLoginSubheader {
    width: 420px;
    box-sizing: border-box;
}

.credmodal2-theme #uiDialogLoginForm {
    width: 420px;
    padding: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 4px;
}

.credmodal2-theme .uiDialogLoginRow label {
    color: #c84b31;
}

.credmodal2-theme .uiDialogLoginRow input:focus {
    border-color: #c84b31;
    box-shadow: 0 0 4px rgba(200, 75, 49, 0.3);
}

.credmodal2-theme #loginButton {
    background: linear-gradient(135deg, #c84b31 0%, #d9632f 100%);
}

.credmodal2-theme .modal-header {
    background: linear-gradient(135deg, #c84b31 0%, #d9632f 100%);
}

.credmodal2-theme #uiDialogLoginFooter {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== CREDMODAL3 THEME (Purple) ===== */
.credmodal3-theme #uiDialogLoginContainer {
    background-color: #fff;
    border-radius: 10px;
}

.credmodal3-theme #uiDialogLoginHeader {
    border-top: 6px solid #667eea;
}

.credmodal3-theme #uiDialogLoginSubheader {
    color: #555;
}

.credmodal3-theme .uiDialogLoginRow label {
    color: #667eea;
}

.credmodal3-theme .uiDialogLoginRow input:focus {
    border-color: #667eea;
    box-shadow: 0 0 4px rgba(102, 126, 234, 0.3);
}

.credmodal3-theme #loginButton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.credmodal3-theme .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.credmodal3-theme .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.credmodal3-theme .btn-primary:hover {
    opacity: 0.9;
}

/* ===== CREDMODAL4 THEME (Dark Navy) ===== */
.credmodal4-theme #uiDialogLoginContainer {
    background-color: #fff;
    border-radius: 10px;
}
.credmodal4-theme #uiDialogLoginHeader {
    border-top: 6px solid transparent;
    border-image: linear-gradient(90deg, #001a4d 0%, #003d99 100%) 1;
    color: #001a4d;
}

.credmodal4-theme .uiDialogLoginRow label {
    color: #001a4d;
    letter-spacing: 0.5px;
}

.credmodal4-theme .uiDialogLoginRow input:focus {
    border-color: #001a4d;
    box-shadow: 0 0 4px rgba(0, 26, 77, 0.3);
}

.credmodal4-theme #loginButton {
    background-color: #001a4d;
}

.credmodal4-theme #loginButton:hover {
    background-color: #003d99;
}

.credmodal4-theme .modal-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #003d99 100%);
}

.credmodal4-theme .btn-primary {
    background-color: #1e3a5f;
}

.credmodal4-theme .btn-primary:hover {
    background-color: #003d99;
}

/* ===== CREDMODAL5 THEME (Burgundy) ===== */
.credmodal5-theme #uiDialogLoginContainer {
    width: 100%;
    max-width: 360px;
    background-color: #faf8f8;
    border-top: 8px solid #a32d2d;
    border-radius: 4px;
}

.credmodal5-theme #uiDialogLoginHeader {
    color: #8b3a3a;
}

.credmodal5-theme .uiDialogLoginRow label {
    color: #8b3a3a;
}

.credmodal5-theme .uiDialogLoginRow input:focus {
    border-color: #8b3a3a;
    box-shadow: 0 0 4px rgba(139, 58, 58, 0.3);
}

.credmodal5-theme #loginButton {
    background: linear-gradient(135deg, #8b3a3a 0%, #a32d2d 100%);
}

.credmodal5-theme .modal-header {
    background: linear-gradient(135deg, #8b3a3a 0%, #a32d2d 100%);
}

.credmodal5-theme #uiDialogLoginFooter {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== SHAREDDOCMODAL1 THEME (Green) ===== */
.shareddocmodal1-theme #uiDialogLoginContainer {
    width: 450px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shareddocmodal1-theme #uiDialogLoginHeader {
    background: linear-gradient(135deg, #305818 0%, #3d6b21 100%);
    color: #ffffff;
    padding: 30px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 24pt;
}

.shareddocmodal1-theme #uiDialogLoginSubheader {
    color: #e8f0e0;
    opacity: 0.95;
}

.shareddocmodal1-theme #uiDialogLoginForm {
    width: 450px;
    padding: 40px 30px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.shareddocmodal1-theme .uiDialogLoginRow label {
    color: #305818;
}

.shareddocmodal1-theme .uiDialogLoginRow input:focus {
    border-color: #305818;
    box-shadow: 0 0 4px rgba(48, 88, 24, 0.3);
}

.shareddocmodal1-theme #uiDialogLoginButton,
.shareddocmodal1-theme #loginButton {
    background-color: #305818;
    border: 3px outset;
    border-color: #93AC84 #0F2800 #0F2800 #93AC84;
    padding: 12px 35px;
    font-weight: bold;
}

.shareddocmodal1-theme #uiDialogLoginButton:hover,
.shareddocmodal1-theme #loginButton:hover {
    background-color: #3d6b21;
    border-color: #a8c684 #062000 #062000 #a8c684;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.shareddocmodal1-theme #uiDialogLoginButton:active,
.shareddocmodal1-theme #loginButton:active {
    border-style: inset;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shareddocmodal1-theme .modal-header {
    background: linear-gradient(135deg, #305818 0%, #3d6b21 100%);
}

.shareddocmodal1-theme .btn-primary {
    background-color: #305818;
    border: none;
}

.shareddocmodal1-theme .btn-primary:hover {
    background-color: #3d6b21;
}

/* ===== NOTIFCATION1 THEME (Dark Gray/Red) ===== */
.notifcation1-theme #uiDialogLoginContainer {
    width: 20vw !important;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #d9534f;
}

.notifcation1-theme #uiDialogLoginHeader {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: #ffffff;
    padding: 25px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 22pt;
}

.notifcation1-theme #uiDialogLoginSubheader {
    color: #e0e0e0;
    opacity: 0.95;
}

.notifcation1-theme #uiDialogLoginForm {
    width: 350px;
    padding: 40px 30px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.notifcation1-theme .uiDialogLoginRow label {
    color: #3a3a3a;
}

.notifcation1-theme .uiDialogLoginRow input:focus {
    border-color: #d9534f;
    box-shadow: 0 0 4px rgba(217, 83, 79, 0.3);
}

.notifcation1-theme #uiDialogLoginButton,
.notifcation1-theme #loginButton {
    background-color: #d9534f;
    border: 3px outset;
    /* border-color: #93AC84 #0F2800 #0F2800 #93AC84; */
    border-color: #d9534f #a32d2d #a32d2d #d9534f;
    padding: 12px 35px;
    font-weight: bold;
}

.notifcation1-theme #uiDialogLoginButton:hover,
.notifcation1-theme #loginButton:hover {
    background-color: #c9302c;
    border-color: #a32d2d #7a1f1f #7a1f1f #a32d2d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.notifcation1-theme #uiDialogLoginButton:active,
.notifcation1-theme #loginButton:active {
    border-style: inset;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notifcation1-theme .modal-header {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.notifcation1-theme .btn-primary {
    background-color: #3a3a3a !important;
    
}
.notification1-theme .btn-primary #acknowledgeLink{
    color: #fff !important;
    }

.notifcation1-theme .btn-primary:hover {
    background-color: #2a2a2a !important;
}

/* ===== SHAREDDOCMODAL2 THEME (Corporate Green) ===== */
.shareddocmodal2-theme #dialog #uiDialogLoginContainer {
    width: 20vw;
    height: 45vh;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.shareddocmodal2-theme #uiDialogLoginHeader {
    background: #232323;
    color: #ffffff;
    /* padding: 25px; */
    display: flex;
    align-items: center;
    gap: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 16px;
    font-weight: bold;
}

.shareddocmodal2-theme #uiDialogLoginLogo {
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    /* padding: 8px 12px; */
    margin: 0 !important;
    border-radius: 4px;
}

.shareddocmodal2-theme #uiDialogLoginSubheader {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.shareddocmodal2-theme #uiDialogLoginForm {
    padding: 15px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    flex: 1;
    
}

.shareddocmodal2-theme #uiDialogNotificationCard {
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.shareddocmodal2-theme #uiDialogCardHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 2px solid #305818;
}

.shareddocmodal2-theme #uiDialogCardIcon {
    font-size: 24px;
}

.shareddocmodal2-theme #uiDialogCardTitle {
    font-size: 16px;
    font-weight: bold;
    color: #305818;
}

.shareddocmodal2-theme #uiDialogDocumentInfo {
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #305818;
    margin-bottom: 12px;
}

.shareddocmodal2-theme .uiDialogInfoRow {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.shareddocmodal2-theme .uiDialogInfoRow:last-child {
    border-bottom: none;
}

.shareddocmodal2-theme .uiDialogInfoLabel {
    font-weight: bold;
    color: #305818;
    min-width: 100px;
}

.shareddocmodal2-theme .uiDialogInfoValue {
    color: #555;
    text-align: right;
}

.shareddocmodal2-theme #uiDialogMessage {
    background-color: #e8f5e9;
    border-left: 4px solid #305818;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    color: #1b5e20;
    line-height: 1.4;
    font-size: 12px;
}

.shareddocmodal2-theme #uiDialogMessage p {
    margin: 0;
}

.shareddocmodal2-theme #uiDialogActionButtons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.shareddocmodal2-theme #uiDialogActionButtons .modalbtn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-family: verdana, arial, helvetica;
    font-size: 10pt;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-primary {
    background-color: #305818;
    color: #fff;
    border: 2px outset #93AC84;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-primary:hover {
    background-color: #0F2800;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-primary:active {
    border-style: inset;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-secondary {
    background-color: #f5f5f5;
    color: #000;
    border: 2px outset #999;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-secondary:hover {
    background-color: #e0e0e0;
}

.shareddocmodal2-theme #uiDialogActionButtons .btn-secondary:active {
    border-style: inset;
}

.shareddocmodal2-theme #uiDialogSecurityNote {
    background-color: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 4px;
    padding: 8px;
    font-size: 9pt;
    color: #e65100;
}

.shareddocmodal2-theme #uiDialogSecurityNote p {
    margin: 0;
}

.shareddocmodal2-theme #uiDialogCardFooter {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ddd;
    font-size: 8pt;
    color: #666;
}

.shareddocmodal2-theme #uiDialogCardFooter p {
    margin: 2px 0;
}

.shareddocmodal2-theme #uiDialogCardFooter a {
    color: #305818;
    text-decoration: none;
}

.shareddocmodal2-theme #uiDialogCardFooter a:hover {
    text-decoration: underline;
}

#dialog #authModal .modal-header,
#dialog #successModal .modal-header {
    background: linear-gradient(135deg, #305818 0%, #0F2800 100%);
}

/* #dialog #authModal .btn-primary,
#dialog #successModal .btn-primary {
    background-color: #305818;
}

#dialog #authModal .btn-primary:hover,
#dialog #successModal .btn-primary:hover {
    background-color: #0F2800;
} */


/* ==================== 6. FORM STYLING ==================== */

/* Form Group */
.formGroup {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.formGroup label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #305818;
}

.formGroup input[type="text"],
.formGroup input[type="email"],
.formGroup input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #999;
    border-radius: 4px;
    font-family: verdana, arial, helvetica;
    font-size: 11pt;
    box-sizing: border-box;
}

.formGroup input[type="checkbox"] {
    margin-right: 8px;
}

.formGroup label input[type="checkbox"] {
    margin: 0;
    margin-right: 8px;
}

/* Form Containers */
#dialog .uiDialogLoginRow,
#dialog .uiLoginRow,
#dialog form div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 15px 0 !important;
    padding: 0 !important;
}

/* Login Form Specific */
#dialog #uiLoginContainer,
#dialog #uiDialogLoginContainer,
#dialog #authModal .modal-content,
#dialog form {
    width: 100% !important;
    max-width: 20vw !important;
    margin: 0 auto !important;
    padding: 30px !important;
    background-color: white !important;
    border-radius: 8px !important;
}

#authMessage {
    color: #d32f2f;
    font-size: 10pt;
    margin-bottom: 15px;
}

