/* public/css/modals.css */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 10px;
}
.modal {
    background: white;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}
.modal h2 {
    margin-top: 0;
    color: var(--primary-color, #667eea);
    font-size: 1.3em;
}
.modal .input-group {
    margin-bottom: 15px;
}
.modal .input-group:last-of-type {
    margin-bottom: 0;
}
.modal textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    height: 120px; /* Increased from 80px to show ~6 lines */
    max-height: 200px; /* Added max height for consistency */
    line-height: 1.5; /* Added for consistent spacing */
    resize: vertical;
    overflow-y: auto; /* Added for scrolling when needed */
}

.close-modal-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #cccccc;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.close-modal-button:hover {
    color: #333333;
}

.warning-details {
    background-color: #f8f9fa;
    border-left: 4px solid #ff9800;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}
.warning-details ul {
    padding-left: 20px;
    margin-top: 8px;
}
.warning-details li {
    margin-bottom: 6px;
    line-height: 1.4;
}
.warning-confirmation {
    margin-top: 20px;
    text-align: center;
}
.warning-confirmation p {
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
}
.help-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}
.help-content {
    text-align: left;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}
.help-content h3 {
    color: var(--primary-color, #667eea);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.help-content h4 {
    color: #333;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.help-content p, .help-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.help-content ul, .help-content ol {
    padding-left: 20px;
}
.help-content strong {
    color: #333;
}
.help-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* --- Prominent password field in Reset Password modal --- */
#resetPasswordModal #newPasswordInput {
    width: 100%;
    padding: 18px 16px; /* larger tap target */
    font-size: 1.3rem; /* bigger text */
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 64px; /* noticeably larger input */
}

#resetPasswordModal #newPasswordInput::placeholder {
    font-size: 1.1rem;
}

#resetPasswordModal #newPasswordInput:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 102, 126, 234), 0.2);
}

/* === NEW SHARED STYLE FOR MESSAGING AND WIDER MODALS === */
.modal-content-pane {
    max-width: 600px;
    width: 90vw;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 75vh;
    max-height: 550px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}


@media (max-width: 767px) {
    .help-modal {
        max-width: 95%;
        padding: 15px;
    }
    .help-content {
        max-height: 60vh;
    }
}