/* Modal Overlay - reusable for any app */
.modal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
}

.modal-overlay.large { max-width: 700px; width: 90%; }
.modal-overlay.medium { max-width: 500px; width: 90%; }
.modal-overlay.small { max-width: 400px; width: 90%; }

.modal-content {
    padding: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #757575;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* Form structure */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.form-field input,
.form-field select {
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Button icons - for use inside forms/modals */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: #757575;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f5f5f5;
    color: #333;
}

.btn-icon.remove-btn:hover {
    color: #f44336;
}
