/*
 * File: bm-modals.css
 * Version: mmdb-0.8.20-claude
 * Munich Musicians DB - Booking Manager Shared Modal Styles
 * Pattern: .bm-modal (fixed wrapper) > .bm-modal-overlay + .bm-modal-content
 */

.bm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.bm-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.bm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.bm-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.bm-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.bm-modal-close:hover {
    color: #333;
}

.bm-modal-body {
    padding: 24px;
}

.bm-modal-body .form-group {
    margin-bottom: 16px;
}

.bm-modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-modal-body input,
.bm-modal-body select {
    width: 100%;
    padding: .6rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.bm-modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
}

.bm-modal-body textarea:focus,
.bm-modal-body input:focus,
.bm-modal-body select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.bm-modal-body .form-group.bm-modal-grid-2 {
    display: grid;
    gap: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.form-actions .button {
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
    min-width: auto !important;
    flex: none !important;
}

.form-actions .button:not(.button-primary) {
    background: #f0f0f0 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

.form-actions .button:not(.button-primary):hover {
    background: #e5e5e5 !important;
}

.form-actions .button-primary {
    background: #007cba !important;
    color: #fff !important;
    border: 1px solid #007cba !important;
}

.form-actions .button-primary:hover {
    background: #005a8b !important;
    border-color: #005a8b !important;
}
