/* 
NGON Modal Styles - Shared across applications
Provides consistent dark theme modal styling for NGON web apps
*/

/* Modal overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal content box */
.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto;
    padding: 30px;
    border: 2px solid #00ff00;
    border-radius: 10px;
    width: 425px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3);
}

/* Modal headings */
.modal h3 {
    color: #00ff00;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Modal text elements */
.modal p {
    color: #ffffff;
    margin-bottom: 15px;
}

/* Modal labels */
.modal label {
    color: #00ff00;
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

/* Modal form controls */
.modal select, 
.modal input[type="text"], 
.modal input[type="password"], 
.modal textarea {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    background: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

/* Modal form control focus states */
.modal select:focus, 
.modal input[type="text"]:focus, 
.modal input[type="password"]:focus, 
.modal textarea:focus {
    border-color: #00ff00;
    outline: none;
}

/* Modal textarea specific */
.modal textarea {
    min-height: 80px;
    resize: vertical;
}

/* Modal button container */
.modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Modal button base styles */
.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* Primary action button (save/login) */
.modal-btn-save {
    background: #22c55e;
    color: black;
}

.modal-btn-save:hover {
    background: #16a34a;
}

/* Cancel/secondary button */
.modal-btn-cancel {
    background: #666;
    color: white;
}

.modal-btn-cancel:hover {
    background: #555;
}

/* Error text styling for login forms */
.modal .error-text {
    color: #ff6b6b;
    margin-bottom: 15px;
    display: none;
}

/* Login specific styling */
.modal .login-form {
    margin: 20px 0;
}

.modal .login-form label {
    text-align: left;
    margin-bottom: 5px;
}

.modal .login-form input {
    margin-bottom: 15px;
}