﻿.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 26, 39, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    width: 360px;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.35);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.modal-title {
    font-size: 19px;
    font-weight: 700;
    color: #0c1a27;
    margin-bottom: 10px;
}

.modal-body {
    font-size: 14px;
    color: #606060;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn-cancel {
    background: none;
    border: 1px solid #dde3e5;
    color: #0c1a27;
    border-radius: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

    .modal-btn-cancel:hover {
        background: #f4f6f7;
    }

.modal-btn-confirm {
    background: #098993;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

    .modal-btn-confirm:hover {
        background: #076e76;
    }

.form-field {
    margin-bottom: 14px;
}

    .form-field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #606060;
        margin-bottom: 5px;
    }

.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #dde3e5;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.edit-status {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 4px 0 12px;
}

    .edit-status.success {
        background: #e6f5e9;
        color: #1a7a34;
    }

    .edit-status.error {
        background: #fbeceb;
        color: #b3413a;
    }

.dashboard-page.dark-mode .modal-card {
    background: #16283a;
}

.dashboard-page.dark-mode .modal-title {
    color: #eef2f4;
}

.dashboard-page.dark-mode .modal-body,
.dashboard-page.dark-mode .form-field label {
    color: #9aa7ad;
}

.dashboard-page.dark-mode .form-input {
    background: #1c3040;
    border-color: #2c4356;
    color: #eef2f4;
}

.dashboard-page.dark-mode .modal-btn-cancel {
    background: transparent;
    border-color: #2c4356;
    color: #eef2f4;
}

    .dashboard-page.dark-mode .modal-btn-cancel:hover {
        background: #1c3040;
    }
